Email or username:

Password:

Forgot your password?
Top-level
silmaril

@dtelder @0xabad1dea

This is a programming error. The library behaves exactly as documented:
docs.python.org/3/library/date

"For the datetime.strptime() class method, the default value is 1900-01-01T00:00:00.000: any components not specified in the format string will be pulled from the default value."

If you want your software to handle leap years correctly, you have to give it a chance to know which year we are talking about 😉

2 comments
silmaril

@dtelder
You're welcome!
Because you successfully triggered my curiosity 😁

@0xabad1dea

Go Up