Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
merge from ajung-european-datetime-support-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Jan 22, 2003
1 parent b2fd384 commit 3f81ff5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions help/DateTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ class DateTime:
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.
Expand Down

0 comments on commit 3f81ff5

Please sign in to comment.