On Sunday, January 12, 2003, at 01:00  PM, Nick Tonkin wrote:

On Sun, 12 Jan 2003, David Wheeler wrote:

On Saturday, January 11, 2003, at 09:56  PM, Nick Tonkin wrote:

Except that there's already one thing different from everything else
in
most existing implementations: the first day of the month starts with
1, not 0. See localtime.
Hmm, but isn't that the value rather than array index?
In the case of objects, they're all values.
That's not what I meant. I mean that when a caller asks for day of month
they expect the final "value" that a human needs, rather than an index for
counting.
My apologies for misunderstanding. What I meant was that, yes, the 1-starting month numbers are values, rather than array indices. However, nowhere that I know if is there a situation in which month numbers are returned 0-indexed, that is, as array indices.

But overall, my point is that, with true DateTime objects with good localization support, there will be very little need for array indexes for months, day of week, or even day of month. So it makes sense to make the 1-based enumerations the default for these things, and provide *_0 methods for those who still want array index-type numbers.

Regards,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]

Reply via email to