From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Calendar - leap seconds
Date: Mon, 19 Mar 2001 14:43:42 GMT
Date: 2001-03-19T14:43:42+00:00 [thread overview]
Message-ID: <wcc8zm13jkx.fsf@world.std.com> (raw)
In-Reply-To: 9940d5$49u6d$1@ID-25716.news.dfncis.de
"Nick Roberts" <nickroberts@adaos.worldonline.co.uk> writes:
> I'm going to upset people here :-/ but Ada.Calendar should never have dealt
> with the extremely thorny issue of converting continuous absolute time to
> and from a calendrical system such as Gregorian (or whatever you want to
> call it). It should have been called Ada.Time_Functions and simply had two
> functions such as To_MJD(:Time) and To_Time(:MJD).*
>
> There could then have been an optional package
> Ada.Text_IO.Gregorian_Calendar, as well as perhaps
> Ada.Text_IO.Time_Within_Day (for hours minutes and seconds), etc.
I'm not sure why moving some of the functionality to a
Gregorian_Calendar package would "upset" anyone.
It seems like a fairly minor change.
I do think it's a mistake to have the Clock function in the same package
as all those conversion functions. Clock is doing I/O, and shouldn't be
mixed with the rest (the rest being "pure" code).
I see the same mistake in Text_IO -- it mixes formatting with I/O.
I find it annoying, for example, that if I want decimal-formatted
integer, I can use 'Image, but if I want hexdecimal, I have to import
Text_IO (or write my own). Hexadecimal formatting has nothing directly
to do with I/O of character strings!
- Bob
next prev parent reply other threads:[~2001-03-19 14:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-17 17:46 Calendar - leap seconds singlespeeder
2001-03-18 15:53 ` Wilhelm Spickermann
2001-03-19 3:47 ` Nick Roberts
2001-03-19 14:43 ` Robert A Duff [this message]
2001-03-19 20:10 ` Laurent Guerby
2001-03-20 10:26 ` Nick Roberts
2001-03-20 19:23 ` Laurent Guerby
2001-03-20 11:34 ` Joseph P Vlietstra
2001-03-20 13:08 ` Wilhelm Spickermann
2001-03-31 14:07 ` Kent Paul Dolan
2001-04-01 11:57 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox