
12 Feb
2005
12 Feb
'05
10:58 p.m.
On 2005-02-13, Ashley Yakeley
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 -><-