summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-05-10 18:53:00 (GMT)
committerSkip Montanaro <skip@pobox.com>2004-05-10 18:53:00 (GMT)
commitfb85739494ffdd12a674bfe0d83f93da7ba75aa1 (patch)
tree746f55fb39e5c4e5c416505eefb88ebaffed8c2a /Doc
parentc7c9a3a958041fe8bdeca60cf6bcac772c476721 (diff)
downloadcpython-fb85739494ffdd12a674bfe0d83f93da7ba75aa1.zip
cpython-fb85739494ffdd12a674bfe0d83f93da7ba75aa1.tar.gz
cpython-fb85739494ffdd12a674bfe0d83f93da7ba75aa1.tar.bz2
Point out that %p has no effect on the output hour in strptime unless %I is
used to parse the hour.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libtime.tex8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex
index 87dd271..04d02fb 100644
--- a/Doc/lib/libtime.tex
+++ b/Doc/lib/libtime.tex
@@ -234,8 +234,8 @@ specification, and are replaced by the indicated characters in the
\lineiii{\%j}{Day of the year as a decimal number [001,366].}{}
\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{\%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
preceding the first Sunday are considered to be in week 0.}{}
@@ -256,6 +256,10 @@ Notes:
\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.
\end{description}