[Python-checkins] python/dist/src/Doc/lib libtime.tex, 1.60.8.1, 1.60.8.2

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Mon Oct 18 03:56:19 CEST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27014/Doc/lib

Modified Files:
      Tag: release23-maint
	libtime.tex 
Log Message:
Add support for using %U and %W in strptime when year and day of the week are
also specified.

Closes bug #1045381.


Index: libtime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libtime.tex,v
retrieving revision 1.60.8.1
retrieving revision 1.60.8.2
diff -u -d -r1.60.8.1 -r1.60.8.2
--- libtime.tex	8 Sep 2003 18:55:01 -0000	1.60.8.1
+++ libtime.tex	18 Oct 2004 01:56:16 -0000	1.60.8.2
@@ -235,11 +235,11 @@
   \lineiii{\%S}{Second as a decimal number [00,61].}{(1)}
   \lineiii{\%U}{Week number of the year (Sunday as the first day of the
                 week) as a decimal number [00,53].  All days in a new year
-                preceding the first Sunday are considered to be in week 0.}{}
+                preceding the first Sunday are considered to be in week 0.}{(2)}
   \lineiii{\%w}{Weekday as a decimal number [0(Sunday),6].}{}
   \lineiii{\%W}{Week number of the year (Monday as the first day of the
                 week) as a decimal number [00,53].  All days in a new year
-                preceding the first Monday are considered to be in week 0.}{}
+                preceding the first Monday are considered to be in week 0.}{(2)}
   \lineiii{\%x}{Locale's appropriate date representation.}{}
   \lineiii{\%X}{Locale's appropriate time representation.}{}
   \lineiii{\%y}{Year without century as a decimal number [00,99].}{}
@@ -255,6 +255,10 @@
   \item[(1)]
     The range really is \code{0} to \code{61}; this accounts for leap
     seconds and the (very rare) double leap seconds.
+  \item[(2)]
+    When used with the \function{strptime()} function, \code{\%U} and \code{\%W}
+    are only used in calculations when the day of the week and the year are
+    specified.
 \end{description}
 
 Here is an example, a format for dates compatible with that specified 



More information about the Python-checkins mailing list