comp.lang.ada
 help / color / mirror / Atom feed
From: "Mário Amado Alves" <maa@liacc.up.pt>
Subject: RE: How to calculate the number of seconds since January 1st, 1970 ?
Date: Tue, 2 Apr 2002 16:09:34 +0100
Date: 2002-04-02T16:09:34+01:00	[thread overview]
Message-ID: <mailman.1017760203.5571.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <0ad901c1da4f$26cc0160$453ab4d8@sy.com>

> . . .
> What compiler are you using, for which the resulting Duration value is
out of range?

Indeed, GNAT's Duration spans circa 6 centuries:

   type Duration is delta 0.000000001
     range -((2 ** 63 - 1) * 0.000000001) ..
           +((2 ** 63 - 1) * 0.000000001);
   for Duration'Small use 0.000000001;

So the original poster must be using either

  - another compiler
  - bad data
  - good data from the Howard Foundation ;-)

Cheers,
--MAA




       reply	other threads:[~2002-04-02 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0ad901c1da4f$26cc0160$453ab4d8@sy.com>
2002-04-02 15:09 ` Mário Amado Alves [this message]
2002-04-02 18:32   ` How to calculate the number of seconds since January 1st, 1970 ? tmoran
2002-04-02  9:24 P. Renaud
2002-04-02 12:00 ` Joachim Schröer
2002-04-02 14:03 ` David C. Hoos
replies disabled

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