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()
'US/Eastern'
>>> DateTime('2006/01/01').timeTime()
1136091600.0
>>> DateTime('2006-01-01').timezone()
'GMT+0'
>>> DateTime('2006-01-01').timeTime()
1136073600.0

AFAICT, this is a feature, not a bug.

-- 

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

Reply via email to