Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?
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