Simple time zone calculation : localtime « Date « PHP






Simple time zone calculation

 
<?php

$time_parts = localtime();

$california_time_parts = localtime(time() - 3 * 3600);
?>
  
  








Related examples in the same category

1.Changing time zone with an environment variable
2.Using localtime()
3.Finding time parts
4.Return array from localtime( )