comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Trivial question: how to avoid confusing sec, min, hour and day in a program?
Date: Sun, 24 Oct 2021 12:39:34 +0200	[thread overview]
Message-ID: <sl3d58$c91$1@dont-email.me> (raw)
In-Reply-To: <sl31nr$li0$1@dont-email.me>

On 10/24/21 09:24, J-P. Rosen wrote:
> 
>     Put ("years:") ;  Put (Duration'Last / 86400 / 365.25); New_Line;

Still using the Julian calendar? In the Common calendar, the average 
length of a year is 365.2425 days (97 leap years every 400 years).

> years:        292.271023045

Should be 292.277024627

-- 
Jeff Carter
"Any extraterrestrials reported are always
described as essentially human in form,
which is so unlikely a possibility that we
can dismiss it out of hand."
Extraterrestrial Civilizations
168

  reply	other threads:[~2021-10-24 10:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05  6:56 Trivial question: how to avoid confusing sec, min, hour and day in a program? reinert
2021-09-05  7:27 ` Dmitry A. Kazakov
2021-09-05 12:42   ` Niklas Holsti
2021-09-06  7:20   ` ldries46
2021-09-06  9:47     ` Dmitry A. Kazakov
2021-09-06 13:06       ` ldries46
2021-09-06 13:43         ` J-P. Rosen
2021-09-06 14:13           ` ldries46
2021-09-06 15:10             ` Dennis Lee Bieber
2021-09-06 15:55       ` AdaMagica
2021-09-08 22:00     ` Shark8
2021-10-24  6:52   ` reinert
2021-10-24  7:24     ` J-P. Rosen
2021-10-24 10:39       ` Jeffrey R.Carter [this message]
2021-10-24 10:08     ` G.B.
2021-10-24 10:48     ` Simon Wright
2021-10-24 12:09     ` Björn Lundin
replies disabled

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