Getting GMT time
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?
.
Relevant Pages
- Re: NTP Configuration for DST?
... OpenVMS systems usually have the system clock set to local ... The time NTPD comes up with is converted to local time (using ... We do this using zone and DST information already present in our ... (comp.protocols.time.ntp) - Re: hware clock left bad after a system failure
... >> really have disk or driver problems at all. ... when in fact I run a local time ... but if the system is set to run its hardware clock on grenwich ... I *think* the problem is that the assumption of grenwich time is only ... (Linux-Kernel) - Re: Best practice for TOD clock
... > I'm engaged in an internal dispute about best practice for the TOD clock: ... > The argument for local time I guess is that it's more simple and convenient ... > Can anyone venture a concise statement on why it is best practice to do it ... > are in two different local time zones, would setting the hardware clock on ... (bit.listserv.ibm-main) - Re: System clock modified after crash
... > advance/retard the clock at daylight savings time boundaries. ... in the spring you get the pleasure of seeing windows ... > locale and show times and dates in your local time. ... Most ISPs have a local NTP server, but using NTP to stabilise is defintitely ... (comp.os.linux.misc) - Re: Setting The System Clock [Linux]
... >> clock set to local time is to cope with Windows's broken time handling. ... >I keep the hardware clock set to local time for a variety of reasons, ... (comp.os.linux.misc) |
|