Re: Newbie: datetime conversion question

2006-10-17 Thread kevin evans
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? ;) > > > >

Newbie: datetime conversion question

2006-10-17 Thread kevin evans
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