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 which is seventh for Jews, so for them Sunday _is_ the first day).
Monday is always the first day of the week for me. Now, regarding indexing (again): I may have missed the change but Dave R. said in an earlier post that he advocated zero-indexing day of week. This may have changed since he said last night something like "Now that we've accepted that day of week is 1-indexed" -- if so I missed that. I want to argue (again) for _not_ 1-indexing day of week. The arguments made for 1-indexing month of year and date of month were that one uses those schemae in Real Life. This is true for month of year, where '2' is another way of saying 'February.' It appears to be true with date of month, although it is not, since '11' is the _value_ of date of month, not an alias for the value. But it is definitely _not_ true for day of week, which is _only_ a counting mechanism used for calculations and not used by humans in Real Life as far as I can tell. I still think all these things should return 0-indexed values unless specified otherwise. When you want a 1-indexed month of year you are probably producing output for a UI anyway, functionality which is usually best kept separate from program logic, even if it's with different functions in the same package. On Sun, 12 Jan 2003, Rich Bowen wrote: > By the way, I still have not seen Dave's original note, except in the > archive. What's up with that? I wonder if it got filtered off to some > other folder. /me goes off grumbling to grep -r the mail tree. I'm getting some of these messages out of order, sometimes by hours ... - nick
