in reply to getting time local to a user supplied offset...
gmtime provides UTC. Feed it time() +/- the right number of seconds and you're done.
--Bob Niederman, http://bob-n.com# Untested print 'enter gmt time offset: '; $offset = <>; # sample input would be '-6' or '3', etc ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime(time() +$offse +t * 3600); $offsettime = ''. gmtime(time() +$offset * 3600);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: getting time local to a user supplied offset...
by Anonymous Monk on Jul 21, 2003 at 00:41 UTC | |
by bobn (Chaplain) on Jul 21, 2003 at 00:44 UTC | |
by Anonymous Monk on Jul 21, 2003 at 00:49 UTC |