Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33397, comment 14


Ignore:
Timestamp:
08/22/2015 12:46:37 AM (10 years ago)
Author:
egill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33397, comment 14

    initial v1  
    77
    88{{{
    9         /**#@+
    10         * Constants for expressing human-readable intervals
    11         * in their respective number of seconds.
    12         *
    13         * Please note that these values are approximate and are provided for convenience.
    14         * For example, MONTH_IN_SECONDS wrongly assumes every month has 30 days and
    15         * YEAR_IN_SECONDS does not take leap years into account.
    16         *
    17         * If you need more accuracy please consider using the DateTime class (http://php.net/manual/class.datetime.php).
    18         */
    19         define( 'MINUTE_IN_SECONDS', 60 );
    20         define( 'HOUR_IN_SECONDS',   60 * MINUTE_IN_SECONDS );
    21         define( 'DAY_IN_SECONDS',    24 * HOUR_IN_SECONDS   );
    22         define( 'WEEK_IN_SECONDS',    7 * DAY_IN_SECONDS    );
    23         define( 'MONTH_IN_SECONDS',  30 * DAY_IN_SECONDS    );
    24         define( 'YEAR_IN_SECONDS',  365 * DAY_IN_SECONDS    );
    25         /**#@-*/
     9/**#@+
     10 * Constants for expressing human-readable intervals
     11 * in their respective number of seconds.
     12 *
     13 * Please note that these values are approximate and are provided for convenience.
     14 * For example, MONTH_IN_SECONDS wrongly assumes every month has 30 days and
     15 * YEAR_IN_SECONDS does not take leap years into account.
     16 *
     17 * If you need more accuracy please consider using the DateTime class (http://php.net/manual/class.datetime.php).
     18 */
     19define( 'MINUTE_IN_SECONDS', 60 );
     20define( 'HOUR_IN_SECONDS',   60 * MINUTE_IN_SECONDS );
     21define( 'DAY_IN_SECONDS',    24 * HOUR_IN_SECONDS   );
     22define( 'WEEK_IN_SECONDS',    7 * DAY_IN_SECONDS    );
     23define( 'MONTH_IN_SECONDS',  30 * DAY_IN_SECONDS    );
     24define( 'YEAR_IN_SECONDS',  365 * DAY_IN_SECONDS    );
     25/**#@-*/
    2626}}}