-
-
Save anonymous/748549b5eb6acb996298 to your computer and use it in GitHub Desktop.
This file contains 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
$date_ranges = array( | |
'Today' => array(strtotime('midnight'), strtotime('midnight tomorrow')), | |
'Yesterday' => array(strtotime('midnight yesterday'), strtotime('midnight')), | |
'Day Before Yesterday' => array(), | |
'This Week' => array(strtotime('midnight first day this week'), strtotime('midnight first day next week')), | |
'This Month' => array(strtotime('midnight first day this month'), strtotime('midnight first day next month')), | |
'All Time' => array(0, 0), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment