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 attempt to get it's UNIX timestamp. And while that sounds weird
it is very useful.
The default year should be 1970. And this will resolve the issue.
----------
messages: 262337
nosy: Itay Grudev
priority: normal
severity: normal
status: open
title: Python default date does not match Unix time
type: behavior
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26635>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com