Created
March 19, 2016 12:52
-
-
Save lucasbento/3ab544be66eea5725d1c to your computer and use it in GitHub Desktop.
Get start and end of given timestamp
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
$timestamp = 1458356400; | |
$startOfDay = strtotime('midnight', $timestamp); | |
$endOfDay = strtotime('tomorrow', strtotime('midnight', $timestamp)) - 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment