[Checkins] SVN: DateTime/trunk/ - Launchpad #143269: Corrected the documentation for year value

Jens Vagelpohl jens at dataflake.org
Tue Jul 27 13:18:40 EDT 2010


Log message for revision 115126:
  - Launchpad #143269: Corrected the documentation for year value
    behavior when constructing a DateTime object with three numeric
    arguments.
  

Changed:
  U   DateTime/trunk/CHANGES.txt
  U   DateTime/trunk/src/DateTime/DateTime.txt

-=-
Modified: DateTime/trunk/CHANGES.txt
===================================================================
--- DateTime/trunk/CHANGES.txt	2010-07-27 17:07:42 UTC (rev 115125)
+++ DateTime/trunk/CHANGES.txt	2010-07-27 17:18:40 UTC (rev 115126)
@@ -4,6 +4,10 @@
 2.12.5 (unreleased)
 -------------------
 
+- Launchpad #143269: Corrected the documentation for year value 
+  behavior when constructing a DateTime object with three numeric 
+  arguments.
+
 - Launchpad #142521: Removed confusing special case in 
   DateTime.__str__ where DateTime instances for midnight 
   (e.g. '2010-07-27 00:00:00 US/Eastern') values would 

Modified: DateTime/trunk/src/DateTime/DateTime.txt
===================================================================
--- DateTime/trunk/src/DateTime/DateTime.txt	2010-07-27 17:07:42 UTC (rev 115125)
+++ DateTime/trunk/src/DateTime/DateTime.txt	2010-07-27 17:18:40 UTC (rev 115126)
@@ -190,7 +190,8 @@
   then the first is taken to be an integer year, the second is taken
   to be an integer month, and the third is taken to be an integer day.
   If the combination of values is not valid, then a DateTimeError is
-  raised.  Two-digit years are assumed to be in the twentieth century.
+  raised.  One- or two-digit years up to 69 are assumed to be in the 
+  21st century, whereas values 70-99 are assumed to be 20th century.
   The fourth, fifth, and sixth arguments are floating point, positive
   or negative offsets in units of hours, minutes, and days, and
   default to zero if not given.  An optional string may be given as



More information about the checkins mailing list