Created
October 19, 2017 11:08
-
-
Save obiPlabon/c961ddd1c87a680f47c4e91e390441a5 to your computer and use it in GitHub Desktop.
WordPress time constants added in 3.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WordPress Time Constants | |
MINUTE_IN_SECONDS = 60 (seconds) | |
HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS | |
DAY_IN_SECONDS = 24 * HOUR_IN_SECONDS | |
WEEK_IN_SECONDS = 7 * DAY_IN_SECONDS | |
MONTH_IN_SECONDS = 30 * DAY_IN_SECONDS | |
YEAR_IN_SECONDS = 365 * DAY_IN_SECONDS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment