Jump to content

need some help on getting right time value.


UI-ZEIKVK

Recommended Posts

try this

 

<?php
//timezone settins how man ours before etc.
$hours = 1;
$minutes = 0 ;
$sign = "-";
$seconds = ($hours*3600)+($minutes*60);
$time = ($sign=="+") ? time()+$seconds: time()-$seconds;
print date("F j, Y, g:i a")."<BR>";
print date("F j, Y, g:i a",$time);

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.