[PING^2] RFC [PATCH] BZ#1077902: New API gettimezone

Paul Eggert eggert@cs.ucla.edu
Wed Apr 30 21:40:00 GMT 2014


On 04/30/2014 12:31 PM, Rich Felker wrote:
> having gmtime return different results based on the TZ variable is
> non-conforming.

glibc gmtime doesn't return different results.  Only localtime is 
affected: it throws in leap seconds if you set TZ appropriately. In this 
case gmtime is returning TAI, not the POSIX approximation to UTC.

Anyway, this is not a POSIX conformance issue, as POSIX does not 
constrain gmtime's behavior when the user sets TZ to a value outside the 
POSIX range.



More information about the Libc-alpha mailing list