summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtime.tex
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-10-18 01:37:57 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-10-18 01:37:57 (GMT)
commit8abcc5d5339d8d8e056138d1217fa07fdcc342c9 (patch)
tree15928368ac3057ce2aa850987525ec24c5d62c06 /Doc/lib/libtime.tex
parentbe8370dc9cd3a9c951d8869088502f84e6892a6e (diff)
downloadcpython-8abcc5d5339d8d8e056138d1217fa07fdcc342c9.zip
cpython-8abcc5d5339d8d8e056138d1217fa07fdcc342c9.tar.gz
cpython-8abcc5d5339d8d8e056138d1217fa07fdcc342c9.tar.bz2
Add support for %U and %W to contribute to calculating the date when the year
and day of the week are specified. Closes bug #1045381.
Diffstat (limited to 'Doc/lib/libtime.tex')
-rw-r--r--Doc/lib/libtime.tex7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex
index 5bca5bc..3b4ec7e 100644
--- a/Doc/lib/libtime.tex
+++ b/Doc/lib/libtime.tex
@@ -247,11 +247,11 @@ specification, and are replaced by the indicated characters in the
\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.}{}
+ preceding the first Sunday are considered to be in week 0.}{(3)}
\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.}{(3)}
\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].}{}
@@ -271,6 +271,9 @@ Notes:
\item[(2)]
The range really is \code{0} to \code{61}; this accounts for leap
seconds and the (very rare) double leap seconds.
+ \item[(3)]
+ \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