On Wed, Jun 28, 2006 at 11:47:28AM +0200, Christian Theune wrote:
> I'm very much against "relaxed" date/time format checking. I tend to 
> give my user the exact format that is expected and fail otherwise. All 
> the guessing in the past led to bad bad errors because the field order 
> the user entered was syntactically compatible but had a semantically 
> different meaning.
> E.g.
> 02/05/2005 and 02.05.2005 are two different things.

As another data point, I recently stumbled on this quirk
of zope 2's DateTime class:

>>> DateTime('2006/01/01').timezone()
>>> DateTime('2006/01/01').timeTime()
>>> DateTime('2006-01-01').timezone()
>>> DateTime('2006-01-01').timeTime()

AFAICT, this is a feature, not a bug.


Paul Winkler
Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to