[issue26635] Python default date does not match Unix time

2016-03-24 Thread STINNER Victor
STINNER Victor added the comment: The year 1900 is a delibrate choice, it's even documented: https://docs.python.org/dev/library/datetime.html#strftime-and-strptime-behavior "For time objects, the format codes for year, month, and day should not be used, as time objects have no such values. If

[issue26635] Python default date does not match Unix time

2016-03-24 Thread Itay Grudev
New submission from Itay Grudev: When parsing a time only string like: ``` datetime.datetime.strptime('13:48:25', '%H:%M:%S') ``` This produces: ``` datetime.datetime(1900, 1, 1, 13, 48, 25) ``` Not that the year is `1900` which just doesn't make sense. This will produce `-1` when you attemp