From: "Jerry van Dijk" <jvandyk@ibm.net>
Subject: Re: How to convert an Fixed_Point to to an Integer ?
Date: 1996/12/27
Date: 1996-12-27T00:00:00+00:00 [thread overview]
Message-ID: <01bbf3d9$b7b0f120$f22d5c8b@jerryware> (raw)
In-Reply-To: 32C2A408.53B8@watson.ibm.com
Norman,
Norman H. Cohen <ncohen@watson.ibm.com> wrote in article
<32C2A408.53B8@watson.ibm.com>...
> slight complication, and this approach does not account for leap
> seconds, but I'm not sure how Unix systems deal with leap seconds
> either
Good question. My normal Unix bible (Stevens, 'Advanced programming in
the
Unix Enviroment, AW, 9th printing, july 1995) keeps almost silent about
it.
But on page 155 Stevens says:
"struct tm { /* a broken down time */
int tm_sec; /* Seconds after the minute: [0, 61] */
...
The reason that seconds can be greater than 59 is to allow for leap
seconds."
And as the DJGPP info documents this fields as [0, 60] I am reasonable
convinced that leaps are taken care of in both systems.
> package Epoch is
>
>
> -- Note: This package works from the beginning of 1970 until the
end of
> -- 2099, after which the package Ada.Calendar is no longer
usable.
> -- During this period, a year y is a leap year if and only if y
> mod 4 = 0.
Gee, and I only asked about it... Thanks Norman!
Jerry,
next prev parent reply other threads:[~1996-12-27 0:00 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-22 0:00 How to convert an Fixed_Point to to an Integer ? Jerry van Dijk
1996-12-23 0:00 ` Larry Kilgallen
1996-12-23 0:00 ` Robert Dewar
1996-12-24 0:00 ` Jerry van Dijk
1996-12-24 0:00 ` Robert Dewar
1996-12-24 0:00 ` Norman H. Cohen
1996-12-24 0:00 ` Robert Dewar
1996-12-26 0:00 ` Keith Thompson
1996-12-26 0:00 ` Robert Dewar
1996-12-25 0:00 ` Jerry van Dijk
1996-12-25 0:00 ` Robert Dewar
1996-12-26 0:00 ` Norman H. Cohen
1996-12-27 0:00 ` Jerry van Dijk [this message]
1996-12-27 0:00 ` Leap seconds in Unix time (was: Re: How to convert an Fixed_Point to to an Integer ?) Norman H. Cohen
1996-12-30 0:00 ` How to convert an Fixed_Point to to an Integer ? Mike Young
1996-12-30 0:00 ` 2000 is a leap year (was: How to convert an Fixed_Point to to an Inte) Larry Kilgallen
1996-12-30 0:00 ` How to convert an Fixed_Point to to an Integer ? Michael F Brenner
1996-12-31 0:00 ` Keith Thompson
1997-01-02 0:00 ` 2000 is a leap year (was: How to convert an Fixed_Point to to an Inte) Mike Paley
1996-12-23 0:00 ` How to convert an Fixed_Point to to an Integer ? Eric Miller
1996-12-23 0:00 ` Jerry van Dijk
1996-12-30 0:00 ` Steve Jones - JON
1996-12-30 0:00 ` Dave Barnes
1996-12-30 0:00 ` Steve Jones - JON
1996-12-30 0:00 ` Jacques Rouillard
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox