[New-bugs-announce] [issue40236] datetime.datetime.strptime get day error

zhanying report at bugs.python.org
Thu Apr 9 05:55:31 EDT 2020


New submission from zhanying <python82 at 126.com>:

In [7]: datetime.datetime.strptime("2024-0-3 00:00:00", "%Y-%W-%w %H:%M:%S")
Out[7]: datetime.datetime(2024, 1, 3, 0, 0)

In [8]: datetime.datetime.strptime("2024-1-3 00:00:00", "%Y-%W-%w %H:%M:%S")
Out[8]: datetime.datetime(2024, 1, 3, 0, 0)

----------
messages: 366039
nosy: zhanying
priority: normal
severity: normal
status: open
title: datetime.datetime.strptime get day error
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40236>
_______________________________________


More information about the New-bugs-announce mailing list