[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Date/time package



On Thu, May 10, 2012 at 05:07:05PM -0400, John Cowan wrote:
> Peter Bex scripsit:
> 
> > - The chronology stuff looks awkward to use.  Especially the
> >    default-chronology is so ill-specified it's more or less useless.
> >    If it's supposed to represent the current machine time + zone,
> >    that makes sense but please say so, so that people can rely on that.
> >    If that remains unspecified, there's no portable way to obtain the
> >    user's current timezone.

I noticed another problem.  Since chronologies can hold any fields
depending on the type, the default (or current-)chronology is still
hard to use.  If it's not iso-based, you can't fetch the hour from it
for example.  If you don't know what type it is, you can't really do
anything with it.

Maybe it makes sense to require that the default/current chronology is
always an ISO type and if it's parameterized to something else, that's
an error.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
							-- Donald Knuth

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