Calendar Types
Aaron Denney
wnoise at ofb.net
Sat Feb 12 22:58:07 EST 2005
On 2005-02-13, Ashley Yakeley <ashley at semantic.org> wrote:
> OK, so here are the basic functions of System.Time.Calendar:
>
> utcToCalendar :: TimeZone -> UTCTime -> CalendarTime
>
> calendarToUTC :: TimeZone -> CalendarTime -> UTCTime
...
> * Should we include a timezone field in CalendarTime?
This would change the signature of calendarToUTC, presumably?
I think it should be in CalendarTime, or rather, TimeOfDay, with
the broken-up representation.
> * Should the "year" field be an Integer instead of an Int? Assuming
> Int=Int32, it gives us 2*10^9 BCE to 2*10^9 CE. The age of the universe
> is about 13.7*10^9 years. The age of the earth is about 4.6*10^9 years.
I think so. I think our best model of it should be unbounded.
--
Aaron Denney
-><-
More information about the Libraries
mailing list