Re: [Scheme-reports] No procedure to ask the current time?
Jeronimo Pellegrini 01 Sep 2010 16:28 UTC
On Thu, Sep 02, 2010 at 12:21:35AM +0900, Alex Shinn wrote:
> Hi, thanks for the feedback.
Hello!
> A time and date library is on the table for WG2, but it's a
> surprisingly complicated subject. For example, the
> interface you give doesn't provide any accessors on the time
> object. Presumably, once you add these, you need to get
> into the topic of timezones, which aren't simple offsets
> from UTC but rather complex geopolitical concepts. Then
> there are leap-seconds, and dates and calendars, etc. and
> it's a nightmare. And Gregorian isn't the only calendar
> that matters - neither of the two calendar systems I use
> most frequently are Gregorian.
OK, I see the problem!
> Something like just a vaguely specified (current-seconds)
> might be reasonable though.
Yes -- that would be nice. I see that my idea was a bit
overengineered.
The time procedures then could in theory be implemented using
(current-seconds).
J.
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports