not using zoneinfo
Posted Mar 10, 2007 1:36 UTC (Sat) by
nix (subscriber, #2304)
In reply to:
not using zoneinfo by ldo
Parent article:
Switching your Linux systems to the new DST (Linux-Watch)
They do use the standard C runtime API calls: but if you want to ask what
the time is in something other than the current locale, or if you want to
make any query of the timezone database other than `what time is it now'
(perhaps `when does the time change next' or `will the time jump in the
next day') then POSIX provides no interfaces that will help (and neither
does glibc, nor will it ever, apparently).
So in that situation you must either locate and directly access the system
timezone database, or ship your own and suitable query code. (PostgreSQL
does the latter so that it can implement timestamps, WITH TIME ZONE types,
and so forth.)
(
Log in to post comments)