[Zope-Checkins] CVS: Zope/lib/python/Products/OFSP/help - DateTime.py:1.8.36.1
Andreas Jung
andreas@andreas-jung.com
Wed, 22 Jan 2003 09:14:44 -0500
Update of /cvs-repository/Zope/lib/python/Products/OFSP/help
In directory cvs.zope.org:/tmp/cvs-serv369/lib/python/Products/OFSP/help
Modified Files:
Tag: ajung-european-datetime-support-branch
DateTime.py
Log Message:
docs updated
=== Zope/lib/python/Products/OFSP/help/DateTime.py 1.8 => 1.8.36.1 ===
--- Zope/lib/python/Products/OFSP/help/DateTime.py:1.8 Wed Aug 14 18:16:05 2002
+++ Zope/lib/python/Products/OFSP/help/DateTime.py Wed Jan 22 09:14:41 2003
@@ -195,6 +195,13 @@
effect of this is as if you had taken the value of time.time()
at that time on a machine in the specified timezone).
+ New in Zope 2.7:
+ A new keyword parameter "datefmt" can be passed to the
+ constructor. If set to "international", the constructor
+ is forced to treat ambigious dates as "days before month
+ before year". This useful if you need to parse non-US
+ dates in a reliable way
+
If a string argument passed to the DateTime constructor cannot be
parsed, it will raise DateTime.SyntaxError. Invalid date, time, or
timezone components will raise a DateTime.DateTimeError.