Calendar Types

Ketil Malde ketil+haskell at ii.uib.no
Mon Feb 14 06:27:23 EST 2005


"Bayley, Alistair" <Alistair_Bayley at ldn.invesco.com> writes:

>> * Should we include a timezone field in CalendarTime?

> Yes. If a CalendarTime doesn't carry timezone information with it, then the
> user must bundle it.

It would also be nice to provide (at least a framework) for
non-Gregorian calendars (e.g. thirteen months).

> I'm assuming System.Time.Calendar is Gregorian. How about
>  - a Duration type
>  - some calendar arithmetic functions
>  - arithmetic on Durations

You also need to specify, or let the user specify, the order of
arithmetic.  I.e. adding a day and then a second is different from
doing it the other way around.

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Libraries mailing list