I've been trying to use the datetime library in python to create a datetime object with this value: '0000-00-00 00:00:00'. However, I keep getting an error that the year is out of range. How can I properly initialize this?
There is no year 0, because people couldn't figure out how to count properly back then.
The closest you can get:
>>> from datetime import datetime
>>> datetime.min
datetime.datetime(1, 1, 1, 0, 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With