summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtime.tex
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-07-18 04:41:36 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-07-18 04:41:36 (GMT)
commitcaebe22038d4de526ab34cfda98047f01c53fc9d (patch)
tree89516e1fc318b0b292a3774e707106cebc8bbaf5 /Doc/lib/libtime.tex
parent4b7e35b530d06780ff905df2669ebdf892d6f75f (diff)
downloadcpython-caebe22038d4de526ab34cfda98047f01c53fc9d.zip
cpython-caebe22038d4de526ab34cfda98047f01c53fc9d.tar.gz
cpython-caebe22038d4de526ab34cfda98047f01c53fc9d.tar.bz2
Fix bug #1520914. Starting in 2.4, time.strftime() began to check the bounds
of values in the time tuple passed in. Unfortunately people came to rely on undocumented behaviour of setting unneeded values to 0, regardless of if it was within the valid range. Now those values force the value internally to the minimum value when 0 is passed in.
Diffstat (limited to 'Doc/lib/libtime.tex')
-rw-r--r--Doc/lib/libtime.tex2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex
index b39b650..0e83400 100644
--- a/Doc/lib/libtime.tex
+++ b/Doc/lib/libtime.tex
@@ -226,6 +226,8 @@ if any field in \var{t} is outside of the allowed range.
\versionchanged[Allowed \var{t} to be omitted]{2.1}
\versionchanged[\exception{ValueError} raised if a field in \var{t} is
out of range]{2.4}
+\versionchanged[0 is now a legal argument for any position in the time tuple;
+if it is normally illegal the value is forced to a correct one.]{2.5}
The following directives can be embedded in the \var{format} string.