[DB-SIG] Date-time types
Fredrik Lundh
fredrik@pythonware.com
Thu, 11 Dec 1997 13:26:33 +0100
>The time module uses 0 as monday, 1 as tuesday,... should
>the tuple-method of the new type also use this convention,
>or rather stick to what the C lib does (0=3Dsunday,1=3Dmonday,...)
>which -I think- is ISO standard ?
ISO C, perhaps. Not the date/time representation standard
ISO 8601, which say:
A week starts with Monday (day 1) and ends with Sunday (day 7).
(IMO, rather than letting the week start on a sunday, use Python's
standard convention 0=3Dmonday...)
And never write date/time code without taking a careful look at ISO 8601
and related ISO standards. The following link might be useful:
ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO
Cheers /F
_______________
DB-SIG - SIG on Tabular Databases in Python
send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
_______________