Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* gmtime(): Doesn't account for leap seconds?!
@ 1996-04-22  4:00 Edward J Sabol
  1996-04-23  4:00 ` Jonathan Kamens
  0 siblings, 1 reply; 12+ messages in thread
From: Edward J Sabol @ 1996-04-22  4:00 UTC (permalink / raw)
  Cc: sabol

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1996-04-25  4:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-22  4:00 gmtime(): Doesn't account for leap seconds?! Edward J Sabol
1996-04-23  4:00 ` Jonathan Kamens
1996-04-24  4:00   ` Chuck Karish
1996-04-24  4:00   ` Lawrence Kirby
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-24  4:00     ` gmtime(): Doesn't account for leap seconds?! Chuck Karish
1996-04-25  4:00       ` Mark Brader
1996-04-25  4:00   ` Geoff Clare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox