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

    kevin> timestamp = "%08x" % Time.now.to_i

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

Try

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

Skip
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to