kevin evans wrote:
> Hi,
> I'm trying to convert some code from Ruby to Python, specifically..
> 
> timestamp = "%08x" % Time.now.to_i
> 
> Make a hex version of the current timestamp. Any ideas how best to do
> this in python gratefully received..
> 


how about

import time
"%08X"% (int)(time.mktime(time.localtime()))

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

Reply via email to