[Zope3-dev] datetimeutils: add localize datetime?

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Feb 1 08:37:28 EST 2005


On Tuesday 01 February 2005 08:20, Gustavo Niemeyer wrote:
> > It's not just guessing-based. It has documented behaviour [1] and tests,
> > and the parsing is pluggable [2], which I think it's a must for any such
> > functionality.
>
> Indeed, it's almost not guessing. You may tell what dates to expect, and
> which order is the expected one. OTOH, right now, it will try a different
> order if the given one fails. This is wrong. An exception should be
> issued in these cases, and that's how the next release will behave.

Okay, so based on Sidnei's and Gustavo's comments I can safely say that 
zope.i18n.format does provide this functionality as well using already the 
ICU data files. The parser and formatter there is based on patterns. A 
high-level function could simply look through a set of specified pattern to 
find a match.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list