[DB-SIG] Date-time types

M.-A. Lemburg lemburg@uni-duesseldorf.de
Thu, 11 Dec 1997 18:08:29 +0100


Fredrik Lundh wrote:
> 
> >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=sunday,1=monday,...)
> >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=monday...)
> 
> 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
> 

Thanks Fredrik. I'll use the Python way then. Those ISO summaries
are interesting. Though I doubt any real user will ever want to
write:

	19930214T131030 for 1993-02-14 13:10:30 or 
	---14 for the 14. of the current month

-- 
Marc-Andre Lemburg



_______________
DB-SIG  - SIG on Tabular Databases in Python

send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
_______________