[nycphp-talk] GMT -> EST or EDT
Christopher R. Merlo
cmerlo at ncc.edu
Tue Mar 2 20:42:51 EST 2004
Have any of you had to display local time on a server that uses GMT?
I'm searching around Google trying to figure out how best to calculate
NY time. I don't want to just subtract 6 from the hour, because then
I'd have to manually change the code twice a year.
It seems that the setlocale method *might* work, but I can't figure
out what to send it. Calling it as:
setlocale( LC_TIME, "EST" );
doesn't seem to do the trick. Help?
TIA,
-c
--
cmerlo at ncc.edu http://turing.matcmp.ncc.edu/~cmerlo
The Internet interprets censorship as damage and routes around it.
- John Gilmore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040302/ec75377a/attachment.sig>
More information about the talk
mailing list