Return to Snippet

Revision: 50449
at August 22, 2011 20:35 by dubogii


Initial Code
<?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. ";
?>

Initial URL


Initial Description


Initial Title
Get the Current Time

Initial Tags


Initial Language
PHP