> TJ> The month and day indices should stay zero since they are array
> TJ> indices.  The manual will reflect this.
> 
> [rspier@localhost rspier]$ perl -wle 'print +(localtime)[3] '
> 31
> 
> To what index do you refer?
> 
> month days are currently 1 based.
> 
> _consistency_ would be nice, C be dammed.

Yes. Sorry. Perusing the docs, months start at zero, days start at 1 and
years start at year-1900. Mainly because you never use day as an array
index of course...

> 
> I propose "consistency" as a "goal".  
> 

Yes.

> (Consistent with what?  With itself.)

> And the manual will reflect _everything_.  If it's not documented, it
> might as well not exist.

Agreed. The localtime() docs suffer from a 'read the C manual' problem at
the moment....

-- 
Tim Jenness
JCMT software engineer/Support scientist
http://www.jach.hawaii.edu/~timj


Reply via email to