Created
May 17, 2016 05:14
-
-
Save YokiToki/580a4290664183785474eb6a413f514c 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
<?php | |
// Using: php -f timezone.php | |
$last_date = ''; | |
$time = time(); | |
for ($i=0; $i < $time; $i+=86400) { | |
$date = date('O', $i); | |
if($date !== $last_date) { | |
echo "|\n"; | |
echo "|-> ".date(DATE_RFC2822, $i)."\n"; | |
} | |
$last_date = date('O', $i); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment