Message57051
| Author |
skip.montanaro |
| Recipients |
guettli, jribbens, skip.montanaro, tim.peters, tomster |
| Date |
2007年11月02日.15:42:34 |
| SpamBayes Score |
0.28511587 |
| Marked as misclassified |
No |
| Message-id |
<18219.17732.240439.613048@montanaro.dyndns.org> |
| In-reply-to |
<1194015736.17.0.312325739544.issue1673409@psf.upfronthosting.co.za> |
| Content |
Tom> unless I'm missing something important this will do the trick quite
Tom> nicely:
>>>> from datetime import datetime
>>>> datetime(2007, 12, 24, 20, 0).strftime("%s")
Tom> '1198522800'
Tom> For most imaginable use cases, where an epoch style time stamp is
Tom> required this should be enough.
No fractions of a second...
Skip |
|