[New-bugs-announce] [issue27741] datetime.datetime.strptime functionality description incorrect

Nicholas Colclasure report at bugs.python.org
Thu Aug 11 14:48:31 EDT 2016


New submission from Nicholas Colclasure:

The datetime.datetime.strptime documentation states that it is equivalent to datetime(*(time.strptime(date_string, format)[0:6])), but the time.struct_time returned by time.strptime does not include microseconds, implying that datetime's strptime would also not include microseconds, but testing of the functions shows that it does include them.

Removing the false statement of equivalence would be enough to remove this bug from the documentation.

----------
assignee: docs at python
components: Documentation
messages: 272474
nosy: Valectar, docs at python
priority: normal
severity: normal
status: open
title: datetime.datetime.strptime functionality description incorrect
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27741>
_______________________________________


More information about the New-bugs-announce mailing list