> > Language
> > -> Unixcentrism
> > -> 1.PROBLEM: localtime's behaviour is non-intuitive for non-Unix people
> >
> > (I've always wondered is why it is 'non-intuitive'? If 0 == January is
> > a problem. What do they do to translate day-of-week? Is it Monday
> > based or Sunday based. Don't they have to read the documentation?)
>
> I agree too. In C/C++/Java all arrays (everything, actually) start with
> 0. Why would a computer programmer (UNIX or Microsoft or ???) be
> confused by starting at 0? I have to agree with Chaim and disagree
> vehemently that localtime() should be changed.
>
> -Nate
>
In my opinion the important change is pre-adding the 1900 to the year. I
find this always has to happen any way so it may as well be automatic.
The month and day indices should stay zero since they are array indices.
The manual will reflect this.
--
Tim Jenness
JCMT software engineer/Support scientist
http://www.jach.hawaii.edu/~timj