OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums OroPlatform OroPlatform – How do I? Questions DateHelper class Orocrm

This topic contains 2 replies, has 2 voices, and was last updated by  RSS 9 months, 4 weeks ago.

  • Creator
    Topic
  • #38131

    RSS
    Participant

    Hello

    Under path: platform/src/Oro/Bundle/DashboardBundle/Helper/DateHelper.php
    There are predefined values already defined with constant values. Below are the parameter under Datehelper class

    const YEAR_TYPE_DAYS = 1460;
    const MONTH_TYPE_DAYS = 93;
    const WEEK_TYPE_DAYS = 60;
    const DAY_TYPE_DAYS = 2;
    const MIN_DATE = ‘1900-01-01’;
    What does above parameter means?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #38133
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi RSS,

    This is the number of days between dates, depending on which we show charts for different periods.
    For example, if the difference between the start date and the end date of the period is more than 1460, then the schedule will be constructed by year, if from 93 to 1460 – then by month, and so on

    #38151

    RSS
    Participant

    Hi
    For example,
    $startDate=’2019-02-13 00:00:00′;
    $endDate=’2019-02-13 00:00:55′;

    I want to plot x axis on basis of seconds as period or interval versus say temperature value. How do i plot this graph in oro? What should be the content in charts.yml file? Please help.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No