From: msb@sq.com (Mark Brader)
Subject: Re: gmtime(): Doesn't account for leap seconds?!
Date: 1996/04/25 [thread overview]
Message-ID: <1996Apr25.082458.6446@sq.com> (raw)
In-Reply-To: 4lm62r$edg@nntp.Stanford.EDU
Chuck Karish (karish@pangea.Stanford.EDU) writes:
> POSIX.1 says that time() returns the number of seconds since the
> Epoch (4.5.1.2), and gives an algorithm relating the result to UCT that
> ignores leap seconds (2.2.2.77). Use of this algorithm by the
> time manipulation functions of the C Standard is mandated in 8.1.
I may as well point out again that these requirements are mutually
contradictory. As soon as you talk specifically about UTC rather than
some other flavor of UT, you are requiring leap seconds to be taken
into account. However, I'm informed that the intent clearly was to
require that they be ignored.
Someone else asked when leap seconds happen. There is not a pre-set
schedule; it depends on the measured rotation of the Earth. At the
moment they tend to be roughly every 2 years.
--
Mark Brader, msb@sq.com "Logic is logic. That's all I say."
SoftQuad Inc., Toronto -- Oliver Wendell Holmes
My text in this article is in the public domain.
next prev parent reply other threads:[~1996-04-25 4:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` 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 [this message]
1996-04-24 4:00 ` Chuck Karish
1996-04-25 4:00 ` 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