Skip to content

Instantly share code, notes, and snippets.

@obiPlabon
Created October 19, 2017 11:08
Show Gist options
  • Save obiPlabon/c961ddd1c87a680f47c4e91e390441a5 to your computer and use it in GitHub Desktop.
Save obiPlabon/c961ddd1c87a680f47c4e91e390441a5 to your computer and use it in GitHub Desktop.
WordPress time constants added in 3.5
// 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