[New-bugs-announce] [issue31212] min date can't be converted to timestamp

Dave Johansen report at bugs.python.org
Tue Aug 15 13:26:32 EDT 2017

New submission from Dave Johansen:

This worked in Python 3.6.0 and before:
from datetime import datetime
d = datetime(1, 1, 1, 0, 0, 0)

The error output is:
ValueError: year 0 is out of range

But it used to return `-62135658000.0`.

Appears to be related to https://bugs.python.org/issue29921

messages: 300303
nosy: Dave Johansen
priority: normal
severity: normal
status: open
title: min date can't be converted to timestamp
type: behavior
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list