[Zope-Coders] Replace Zope2 DateTime._parse() with Zope3's DateTimeParser

Lennart Regebro lennart@regebro.nu
Sun, 24 Nov 2002 13:14:32 +0100


From: "Shane Hathaway" <shane@zope.com>
> You can't claim "international compliance" unless you use ISO format,
> putting the 4-digit year first. :-)

Ahem. Quote from ISO8601:2000(E), Representation of dates and times, Second
edition 2000-12-15:

"If, by agreement, truncated representations are used the basic formats
shall be as specified below. In each case hyphens that indicate omitted
components shall be used only as indicated or shall be omitted.

a) A specific date in the implied century
Basic format: YYMMDD EXAMPLE 850412
Extended format: YY-MM-DD EXAMPLE 85-04-12"

But yes, the complete date representation is 1985-04-12 or 19850412, that is
correct. There are also expanded representations which have six-digit years.
We won't need them for a while. :-)