Mega Code Archive

 
Categories / Php / Date Time
 

Gettimeofday php

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