advanced code snippet search
dubogii on 08/22/11
time local current
<?php$h = "8"; // Standard time zone for Hong Kong :UTC/GMT +8 hours$hm = $h * 60;$ms = $hm * 60;$localtime= gmdate("m/d/Y g:i:s A", time()+($ms));echo "Your current time now is : $localtime. ";?>
Report this snippet
You need to login to post a comment.