Newbie: datetime conversion question
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.. -- http://mail.python.org/mailman/listinfo/python-list
Re: Newbie: datetime conversion question
Great stuff - many thanks hg wrote: Carsten Haese wrote: On Tue, 2006-10-17 at 08:49, hg wrote: import time %08X% (int)(time.mktime(time.localtime())) Have you not had your coffee yet or are you trying to win an obfuscated python programming competition? ;) -Carsten Just one cup hg -- http://mail.python.org/mailman/listinfo/python-list