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 | */ |
| 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 | /**#@-*/ |