Handling DST with zoneinfo : putenv « Utility Function « PHP






Handling DST with zoneinfo

 
<?php

putenv('TZ=America/Denver');

$summer = mktime(12,0,0,7,4,2008);
print date('c', $summer) . "\n";

putenv('TZ=America/Phoenix');
print date('c', $summer) . "\n";
?>
  
  








Related examples in the same category

1.Setting an environment variable