in reply to Re: Time Issues
in thread Time Issues
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime(time); my $gm_time = timegm($sec,$min,$hour,$mday,$mon,$year,$wday,$yday); my $server_time = $gm_time - (5*3600); my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $time) = gmti +me($server_time); printf("%4d-%2.2d-%2.2d %2.2d:%2.2d:%2.2d", $year + 1900, $mon + 1, $m +day, $hour, $min, $sec);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Time Issues
by davorg (Chancellor) on Mar 13, 2007 at 15:04 UTC | |
by ikegami (Patriarch) on Mar 13, 2007 at 15:29 UTC | |
|
Re^3: Time Issues
by Fletch (Bishop) on Mar 13, 2007 at 14:58 UTC |