◐ Shell
clean mode source ↗

Message 57051 - Python tracker

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