summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-08 00:13:34 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-08 00:13:34 (GMT)
commitb8bb4664fc8cb833f0fd50c9dac4f6c3be032784 (patch)
tree1b02d0fbb69e4849a2f4e0c48d7f33fa088b0bd0 /Modules/timemodule.c
parent9253214fd9fe22b8b2b4ca5bb28952df8cab3e8c (diff)
downloadcpython-b8bb4664fc8cb833f0fd50c9dac4f6c3be032784.zip
cpython-b8bb4664fc8cb833f0fd50c9dac4f6c3be032784.tar.gz
cpython-b8bb4664fc8cb833f0fd50c9dac4f6c3be032784.tar.bz2
Issue #1777412: extended year range of strftime down to 1000.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 94265c6..5732f15 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -471,9 +471,9 @@ time_strftime(PyObject *self, PyObject *args)
return NULL;
/* XXX: Reportedly, some systems have issues formating dates prior to year
- * 1900. These systems should be identified and this check should be
+ * 1000. These systems should be identified and this check should be
* moved to appropriate system specific section below. */
- if (buf.tm_year < 0) {
+ if (buf.tm_year < -900) {
PyErr_Format(PyExc_ValueError, "year=%d is before 1900; "
"the strftime() method requires year >= 1900",
buf.tm_year + 1900);