From: Edward J Sabol <sabol@thuban.gsfc.nasa.gov>
Cc: sabol@thuban.gsfc.nasa.gov
Subject: gmtime(): Doesn't account for leap seconds?!
Date: 1996/04/22 [thread overview]
Message-ID: <h4lojowbdg.fsf@dbsrv.gsfc.nasa.gov> (raw)
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
next reply other threads:[~1996-04-22 4:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-22 4:00 Edward J Sabol [this message]
1996-04-23 4:00 ` gmtime(): Doesn't account for leap seconds?! Jonathan Kamens
1996-04-24 4:00 ` Chuck Karish
1996-04-24 4:00 ` Lawrence Kirby
1996-04-24 4:00 ` Chuck Karish
1996-04-25 4:00 ` Mark Brader
1996-04-24 4:00 ` Jonathan Kamens
1996-04-24 4:00 ` Chuck Karish
1996-04-25 4:00 ` Bill Marcum
1996-04-24 4:00 ` P.Bennett
1996-04-25 4:00 ` When do leap seconds occur? (was: Re: gmtime(): Doesn't account for leap seconds?!) Jonathan Kamens
1996-04-25 4:00 ` gmtime(): Doesn't account for leap seconds?! Geoff Clare
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox