Leaping seconds and looping servers
Leaping seconds and looping servers
Posted Jul 4, 2012 18:49 UTC (Wed) by kleptog (subscriber, #1183)In reply to: Leaping seconds and looping servers by lindi
Parent article: Leaping seconds and looping servers
Well, you can demonstrate it fairly easily on the command-line:
$ TZ="right/UTC" date ; TZ="posix/UTC" date Wed Jul 4 18:26:24 UTC 2012 Wed Jul 4 18:26:49 UTC 2012What you need is a library that can easily open multiple timezones at once. I thought glibc could do it, but it doesn't appear to, from reading the source. However, GLib seems to have support. I would have thought the g_time_zone_get_offset() would be enough, but apparently not. Actually, even though I can open both zones I can't convince GLib to give me the answer :(. Though it must be possible.
Posted Jul 4, 2012 19:38 UTC (Wed)
by lindi (subscriber, #53135)
[Link]
Leaping seconds and looping servers
