[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] No procedure to ask the current time?
- To: Jeronimo Pellegrini <j_p@x>
- Subject: Re: [Scheme-reports] No procedure to ask the current time?
- From: Alex Shinn <alexshinn@x>
- Date: Thu, 02 Sep 2010 00:21:35 +0900
- Cc: scheme-reports@x
- In-reply-to: <20100831124933.GA26385@localhost> (Jeronimo Pellegrini's message of "Tue, 31 Aug 2010 09:49:33 -0300")
- References: <20100831124933.GA26385@localhost>
Hi, thanks for the feedback.
Jeronimo Pellegrini <j_p@x> 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.
Scheme-reports mailing list