On Friday, January 10, 2003, at 09:52  PM, Dave Rolsky wrote:

I propose the following:

month - 1-12
month_name - full name
month_name_abbr - abbreviated name

day - _day of month_ (makes sense in context of year() and month() methods)
day_of_week - 0-6 (or 1-7, see earlier question)
day_name - full name
day_name_abbr - abbreviated name
Hmm -- that looks like trouble; month_name() is the written version of month(), but day_name() is the written version of day_of_week() rather than of day().

Could we use the term "weekday" instead of "day_of_week", or does that seem like we're opposing it to "weekend"?

That would give us a nice, compact nomenclature:

year - non-zero integer

month - 1-12
month_0 - 0-11
month_name - full name
month_abbr - abbreviated name

day - 1-31

weekday - 1-7
weekday_0 - 0-6
weekday_name - full name
weekday_abbr - abbreviated name

weeknum - 1-52
weeknum_0 - 0-51

(I think it's safe to s/name_abbr/abbr/ without confusing users.)

-Simon



Reply via email to