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_default_timezone_set('America/New_York'); //Eastern | |
echo date('r')."<br />"; | |
time_test_1(); | |
time_test_2(); | |
function time_test_1() { | |
echo date('r')."<br />"; | |
} | |
function time_test_2() { | |
date_default_timezone_set('America/Chicago'); //Central | |
echo date('r')."<br />"; | |
} | |
echo date('r')."<br />"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment