From: Martin <martin.dowie@btopenworld.com>
Subject: Re: Inspiration for a better calendar package?
Date: Tue, 9 Dec 2008 04:23:04 -0800 (PST)
Date: 2008-12-09T04:23:04-08:00 [thread overview]
Message-ID: <9106cf82-6e19-4a0e-aa84-583843dc9375@y1g2000pra.googlegroups.com> (raw)
In-Reply-To: 12gqldae49yoe$.1sf2zlz1fthvh.dlg@40tude.net
On Dec 9, 11:15 am, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> On Tue, 9 Dec 2008 02:15:55 -0800 (PST), Martin wrote:
> > Ada.Calendar, Ada.Calendar.Arithmetic and Ada.Calender.Time_Zones
> > already seem to provide all this (and more!).
>
> They do not. There is no portable way to handle UTC.
>
> Ada.Calender.Time_Zones and Arithmetic are ill-defined. It was discussed in
> comp.lang.ada in August this year. I also posted a proposal how to fix the
> issue to Ada comment.
>
> As for Ada.Calendar I doubt there should be any. It is a burden inherited
> from Ada 83. We just do not need political time otherwise than for
> formatted text output. It was silly for Ada 2005 to define time arithmetic
> in terms of political time. Especially because there simply is no way to
> define such arithmetic. Since political time increment "+" is not a
> function of its arguments!
>
> --
> Regards,
> Dmitry A. Kazakovhttp://www.dmitry-kazakov.de
Ah, I see there is more to the Haskell library than the initial link
suggests - having found http://haskell.org/ghc/docs/latest/html/libraries/time/Data-Time.html
it does cover the areas I didn't think it did.
If someone thinks this method fixes the perceived problem there is
nothing stopping them creating a "Date_Time" package hierarchy based
on the Haskell library that could be subsequently standardized (into
Ada.Date_Time) - anyone volunteers?
Cheers
-- Martin
next prev parent reply other threads:[~2008-12-09 12:23 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 9:48 Inspiration for a better calendar package? Jacob Sparre Andersen
2008-12-09 10:15 ` Martin
2008-12-09 11:15 ` Dmitry A. Kazakov
2008-12-09 12:23 ` Martin [this message]
2008-12-09 15:16 ` JDECS
2008-12-09 15:44 ` Dmitry A. Kazakov
2008-12-09 17:04 ` JDECS
2008-12-15 7:45 ` Wilhelm Spickermann
2008-12-15 9:00 ` Dmitry A. Kazakov
2008-12-15 12:14 ` m.collado
2008-12-15 13:35 ` Dmitry A. Kazakov
2008-12-15 12:59 ` Wilhelm Spickermann
2008-12-15 13:46 ` Dmitry A. Kazakov
2008-12-16 0:47 ` sjw
2008-12-16 8:41 ` Dmitry A. Kazakov
2008-12-16 12:08 ` Georg Bauhaus
2008-12-16 5:50 ` Wilhelm Spickermann
2008-12-16 8:50 ` Dmitry A. Kazakov
2008-12-16 12:23 ` Georg Bauhaus
2008-12-17 6:16 ` Wilhelm Spickermann
2008-12-17 8:29 ` Dmitry A. Kazakov
2008-12-18 21:48 ` Wilhelm Spickermann
2008-12-19 8:38 ` Dmitry A. Kazakov
[not found] ` <9ImdneCohuZCNdvUnZ2dnUVZ_s3inZ2d@earthlink.com>
2008-12-16 5:13 ` Wilhelm Spickermann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox