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: First draft of the Y2038 design document


On Tue, Oct 27, 2015 at 01:57:18AM -0700, Paul Eggert wrote:
> Rich Felker wrote:
> >The relationship between time_t and broken down struct tm is strictly
> >specified and does not admit leap seconds.
> 
> Although that's true for applications that specify POSIX TZ values,
> glibc supports leap seconds as an extension. Once you set the TZ
> environment variable to a value like "right/America/Los_Angeles"
> that is outside what POSIX allows, the implementation can do what it
> likes here.

POSIX does not permit the TZ variable to affect the result of gmtime,
only the result of localtime.

Rich


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