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 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.
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
--
http://mail.python.org/mailman/listinfo/python-list
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
times
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.mkt
On Tue, 2006-10-17 at 08:43, 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..
import time
timestam
"kevin evans" wrote:
> 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..
that's perfectly valid Python code, provided Time is a