[docs] strptime %m not fully specified
G Lingle
glingle at gmail.com
Tue Feb 7 23:28:11 CET 2012
Hi,
In section 8.1.7 of python 2.7 docs:
.../python-2.7.1-docs-html/library/datetime.html#strftime-strptime-behavior
and in section 7.1.8 in the 3.2 docs:
There is a table that purportedly tells the behavior of strftime() and
strptime().
The entry for month is like:
%m Month as a decimal number [01,12].
This indicates that strptime will parse 2-digit months and raise an
exception
if the month string isn't 2-digit.
I think that a note should be added to indicate that strptime()
will accept a 1-digit month.
My .02 - thx!
G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20120207/66d81b0b/attachment-0001.html>
More information about the docs
mailing list