[Zope-Coders] Replace Zope2 DateTime._parse() with Zope3's DateTimeParser
Lennart Regebro
lennart@regebro.nu
Mon, 25 Nov 2002 19:30:36 +0100
From: "Andreas Jung" <andreas@andreas-jung.com>
> - the DateTime constructor gets a new keyword argument "datefmt" with two
> possible values "us" (default) and "european"
>
> - "european" would force the parser to treat the date with day before
month
> before year
>
> - "us" would not change the default behaviour for compatibility reasons
>
> - a new env variable DATETIME_FORMAT would allow to specify this
> behaviour for the complete Zope instance
>
> - the ZPUblishers notations for date types should be extended to:
>
> "field:date" for US dates and
>
> "field:date_european" for european dateformat (or a notation like
> like "field:date:european" )
Could work. I assume that this would only be relevant for dates with dots
and slashes? Or do we also need the "field:date:international"?