Newbie: datetime conversion question

skip at skip at
Tue Oct 17 15:11:27 CEST 2006

    kevin> I'm trying to convert some code from Ruby to Python,
    kevin> specifically..

    kevin> timestamp = "%08x" %

    kevin> Make a hex version of the current timestamp. Any ideas how best
    kevin> to do this in python gratefully received..


    import time
    timestamp = hex(int(time.time()))


More information about the Python-list mailing list