[Python-checkins] python/dist/src/Doc/lib libtime.tex,1.63,1.64

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Mon May 10 14:53:03 EDT 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4965
Modified Files:
	libtime.tex 
Log Message:
Point out that %p has no effect on the output hour in strptime unless %I is
used to parse the hour.
Index: libtime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libtime.tex,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** libtime.tex	2 Mar 2004 04:38:10 -0000	1.63
--- libtime.tex	10 May 2004 18:53:00 -0000	1.64
***************
*** 235,240 ****
 \lineiii{\%m}{Month as a decimal number [01,12].}{}
 \lineiii{\%M}{Minute as a decimal number [00,59].}{}
! \lineiii{\%p}{Locale's equivalent of either AM or PM.}{}
! \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
--- 235,240 ----
 \lineiii{\%m}{Month as a decimal number [01,12].}{}
 \lineiii{\%M}{Minute as a decimal number [00,59].}{}
! \lineiii{\%p}{Locale's equivalent of either AM or PM.}{(1)}
! \lineiii{\%S}{Second as a decimal number [00,61].}{(2)}
 \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
***************
*** 257,260 ****
--- 257,264 ----
 \begin{description}
 \item[(1)]
+ When used with the \function{strptime()} function, the \code{\%p}
+ directive only affects the output hour field if the \code{\%I} directive
+ is used to parse the hour.
+ \item[(2)]
 The range really is \code{0} to \code{61}; this accounts for leap
 seconds and the (very rare) double leap seconds.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /