gettimeofday.php : gettimeofday « Date « PHP






gettimeofday.php

 
<?php

$time = gettimeofday();
$GMToffset = $time['minuteswest'] / 60;
echo "Server location is $GMToffset hours west of GMT.";

?>
  
  








Related examples in the same category