Re: [Scheme-reports] No procedure to ask the current time? Alex Shinn (01 Sep 2010 15:25 UTC)
Re: [Scheme-reports] No procedure to ask the current time? Jeronimo Pellegrini (01 Sep 2010 16:29 UTC)

Re: [Scheme-reports] No procedure to ask the current time? Alex Shinn 01 Sep 2010 15:21 UTC

Hi, thanks for the feedback.

Jeronimo Pellegrini <j_p@aleph0.info> writes:

> I was wondering if it isn't worth to include the timing part
> of SRFI-18 in the small version of Scheme. The procedures
> that I suppose would be interesting are:
>
> - (current-time)
> - (time->seconds time)
> - (seconds->time x)
> - (time? obj)
>
> Just that. No threads, mutexes or signals.

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.

Something like just a vaguely specified (current-seconds)
might be reasonable though.

--
Alex

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports