From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,cd35c069ae659c58,start X-Google-Attributes: gid1014db,public X-Google-Thread: fee84,cd35c069ae659c58,start X-Google-Attributes: gidfee84,public X-Google-Thread: fc89c,cd35c069ae659c58,start X-Google-Attributes: gidfc89c,public X-Google-Thread: f678f,cd35c069ae659c58,start X-Google-Attributes: gidf678f,public From: Edward J Sabol Subject: gmtime(): Doesn't account for leap seconds?! Date: 1996/04/22 Message-ID: #1/1 X-Deja-AN: 150860526 mail-copies-to: Edward J Sabol cc: sabol@thuban.gsfc.nasa.gov organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA reply-to: Edward J Sabol newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.programmer,comp.lang.c I did some tests and it would seem to me that the C library function gmtime() doesn't take leap seconds into account when converting from a time_t variable to a tm structure. This is on the DEC OSF/1 3.2 machine I'm using for development. Is this a platform-specific bug or is this function not required by the ISO/ANSI standards to take leap seconds into account on any platform? If it's the former, are there any Unix operating systems where gmtime() takes leap seconds into account? If so, which ones? And before I reinvent the wheel, does anyone have the source code to a portable version of gmtime() that does in fact take leap seconds into account? Please respond by e-mail in addition to posting, if possible. Thanks, Ed