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