Getting GMT time
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Getting GMT time

From: Anonymous AtWork <noone@nowhere.com>
Date: Thu Dec 29 2005 - 20:56:08 CET

I want to know what the GMT time is. If I do [clock seconds], I get the
local time. I can add 5 hours, but what about DST when it is 6 (or
4--whatever the difference is). There's probably some kind of
non-portable craziness I could do to find out what TZ the computer is in
and figure out the local algorithm for adjustment thereof, but since Tcl
already knows all that (right?) it seems like it could do it for me.

Is there a simple, 2-3 line way to do this?
Received on Tue Jan 3 03:09:39 2006