Message221872
| Author |
belopolsky |
| Recipients |
Daniel.O'Connor, akira, belopolsky, bignose, mumino, r.david.murray, santoso.wijaya, tim.peters, vstinner |
| Date |
2014年06月29日.18:09:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1404065395.05.0.389613456169.issue12750@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is the simpler demonstration of the "floor" behavior on Linux:
>>> from datetime import datetime
>>> datetime.fromtimestamp(-0.1).strftime('%s')
'-1'
>>> datetime.fromtimestamp(-1.1).strftime('%s')
'-2'
>>> datetime.fromtimestamp(0.1).strftime('%s')
'0'
>>> datetime.fromtimestamp(1.1).strftime('%s')
'1' |
|