Front page | perl.perl6.language |
Postings from July 2005
Re: Time::Local
Thread Previous
|
Thread Next
From:
Juerd
Date:
July 5, 2005 11:22
Subject:
Re: Time::Local
Message ID:
20050705182207.GH7720@c4.convolution.nl
Dave Rolsky skribis 2005-07-05 11:41 (-0500):
> >* .month and .wday are one-based. Sunday == 1. Haskell has them as
> > enums which avoids off-by one confusion completely; I made them like
> > I did because that's like humans think of them.
> And yes again!
No. Humans don't USE numbers for week days! So beginning at 1 makes no
sense, except for humans who like creating lists like (undef, <Sunday
Monday ...>). In fact, I would prefer <Saturday Sunday Monday ...> to
not having any 0 :)
Now, for months, yes it does make lots of sense.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Thread Previous
|
Thread Next