Message226224
| 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:22 | Dima.Tisnek | set | recipients:
+ Dima.Tisnek |
| 2014年09月01日 10:03:22 | Dima.Tisnek | set | messageid: <1409565802.22.0.948210004323.issue22321@psf.upfronthosting.co.za> |
| 2014年09月01日 10:03:22 | Dima.Tisnek | link | issue22321 messages |
| 2014年09月01日 10:03:21 | Dima.Tisnek | create |
|