Adjusting time from UTC to another time zone : gmstrftime « Date « PHP






Adjusting time from UTC to another time zone

 
<?php

$now = time();


$now += $pc_timezones['PST'];

print gmstrftime('%c',$now);
?>
  
  








Related examples in the same category

1.Handling DST with explicit offsets