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.

作者 tomster
收信人 guettli, jribbens, skip.montanaro, tim.peters, tomster
日期 2007-11-02.15:02:15
SpamBayes Score 0.22138464
Marked as misclassified
Message-id <1194015736.17.0.312325739544.issue1673409@psf.upfronthosting.co.za>
In-reply-to
内容
unless I'm missing something important this will do the trick quite 
nicely:

    >>> from datetime import datetime
    >>> datetime(2007, 12, 24, 20, 0).strftime("%s")
    '1198522800'

For most imaginable use cases, where an epoch style time stamp is 
required this should be enough.

HTH,

Tom
历史
日期 用户 动作 参数
2007-11-02 15:02:16tomster修改spambayes_score: 0.221385 -> 0.22138464
recipients: + tomster, tim.peters, skip.montanaro, jribbens, guettli
2007-11-02 15:02:16tomster修改spambayes_score: 0.221385 -> 0.221385
messageid: <1194015736.17.0.312325739544.issue1673409@psf.upfronthosting.co.za>
2007-11-02 15:02:15tomster链接issue1673409 messages
2007-11-02 15:02:15tomster创建