Re: Which DOW is day #1?

2003-01-24 Thread Dave Rolsky
On Fri, 24 Jan 2003, Peter J. Acklam wrote: I believe this thread proves that what is considered the first day of the week must be customizable. If it isn't, then someone (perhaps not someone on this mailing list, but someone) will be dissatisfied and consider the DateTime modules useless

Re: Which DOW is day #1?

2003-01-24 Thread Clayton L. Scott
On Fri, 24 Jan 2003, Dave Rolsky wrote: On Fri, 24 Jan 2003, Peter J. Acklam wrote: In relation to week numbers and day of week numbers, there are at least four parameters that must be customizable: 1) What is the first day of a week (Sunday, Monday, ...)? I just need method names

Re: Which DOW is day #1?

2003-01-24 Thread Dave Rolsky
On Fri, 24 Jan 2003, Clayton L. Scott wrote: So if I want to use Sunday as the first day of the week every will method I use will have sunday in it? What if for some business reason I decide that it's easier to do my calculations if Wednesday is the first day of the week? How about: use

Re: Which DOW is day #1?

2003-01-14 Thread Brad Hughes
Dave Rolsky wrote: [...] Make that: $month[ $date-month_0 ] vs. $date-month_name $date-month returns a 1-based numbers $date-month_0 a 0-based named $date-month_name returns a name based on the DateTime::Language module the $date object is holding onto. While I like returning 1 based numbers

Re: Which DOW is day #1?

2003-01-13 Thread Rich Bowen
On Sun, 12 Jan 2003, Nick Tonkin wrote: You completely misunderstood my point, Rich. I was not implying any slight whatsoever. I continue to disagree with your opinion about the first day of the week in the Christian tenet(s), about which I know a good deal more than you evidently think. I

Re: Which DOW is day #1?

2003-01-12 Thread Martijn van Beers
On Sun, Jan 12, 2003 at 09:13:07AM -0500, John Peacock wrote: Dave Rolsky wrote: I'm inclined to go with ISO rather than backwards compatibility with C. We really have to go with ISO because that battle has already been fought and won(?) in the international community. And we have

Re: Which DOW is day #1?

2003-01-12 Thread David Wheeler
On Sunday, January 12, 2003, at 11:15 AM, John Peacock wrote: A lot of the 0-based vs 1-based arguments should be resolved simply by having our interface design in place. Programmers will be less inclined to have to look up some 0-based array when the API we provide does it for them, i.e.

Re: Which DOW is day #1?

2003-01-12 Thread Matthew Simon Cavalletto
On Sunday, January 12, 2003, at 10:48 AM, Rich Bowen wrote: On Sun, 12 Jan 2003, John Peacock wrote: We really have to go with ISO because that battle has already been fought and won(?) in the international community. Well, I was going to say the following: This is not about either ISO

Re: Which DOW is day #1?

2003-01-12 Thread Dave Rolsky
On Sun, 12 Jan 2003, David Wheeler wrote: On Sunday, January 12, 2003, at 11:15 AM, John Peacock wrote: A lot of the 0-based vs 1-based arguments should be resolved simply by having our interface design in place. Programmers will be less inclined to have to look up some 0-based array

Re: Which DOW is day #1?

2003-01-12 Thread Nick Tonkin
On Sun, 12 Jan 2003, Rich Bowen wrote: On Sun, 12 Jan 2003, Nick Tonkin wrote: Funny how the Christian point of view is that Sunday is the first day of the week, when God rested on the seventh day after working to make the world. Seventh which is Sunday for Christians .. (and Saturday