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 Dima.Tisnek
Recipients Dima.Tisnek
Date 2014-09-01.10:03:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409565802.22.0.948210004323.issue22321@psf.upfronthosting.co.za>
In-reply-to
Content
$ python2 -c 'import datetime; print datetime.time(10, 44, 11).strftime("%s")'
-2208955189

$ python3 -c 'import datetime; print (datetime.time(10, 44, 11).strftime("%s"))'
-2208955189

So apparently, datetime.time(...).strftime("%s") semantically "seconds since unix epoch" assumes Jan 1, 1900 for missing date part.

However datetime module doesn't allow subtracting time objects, i.e. no assumption of date is made, where "same date" chould be reasonable.
History
Date User Action Args
2014-09-01 10:03:22Dima.Tisneksetrecipients: + Dima.Tisnek
2014-09-01 10:03:22Dima.Tisneksetmessageid: <1409565802.22.0.948210004323.issue22321@psf.upfronthosting.co.za>
2014-09-01 10:03:22Dima.Tisneklinkissue22321 messages
2014-09-01 10:03:21Dima.Tisnekcreate