Re: module time

2006-02-20 Thread Fredrik Lundh
"Sergey" wrote: > There is function > mktime() -- convert local time tuple to seconds since Epoch > in module time. > But how about to convert *GMT time tuple* to seconds since Epoch? > > Is there such function? >>> import calendar >>> help(calendar.timegm) Help on function timegm in module calend

Re: module time

2006-02-20 Thread jean-michel bain-cornu
Sergey wrote: > There is function > mktime() -- convert local time tuple to seconds since Epoch > in module time. > But how about to convert *GMT time tuple* to seconds since Epoch? > > Is there such function? > > Does mktime(gmtime()) suit your needs ? Regs, jm -- http://mail.python.org/mailma