This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Itay Grudev
Recipients Itay Grudev
Date 2016-03-24.12:45:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458823538.48.0.621744004031.issue26635@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-03-24 12:45:38Itay Grudevsetrecipients: + Itay Grudev
2016-03-24 12:45:38Itay Grudevsetmessageid: <1458823538.48.0.621744004031.issue26635@psf.upfronthosting.co.za>
2016-03-24 12:45:38Itay Grudevlinkissue26635 messages
2016-03-24 12:45:38Itay Grudevcreate