This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]