Re: Don't understand a probleme of module time not defined when calling a foo func

2016-05-31 Thread Ni Va
On Monday, May 30, 2016 at 11:10:33 PM UTC+2, Matt Wheeler wrote: > On Mon, 30 May 2016, 21:08 Ni Va, wrote: > > > > > _ > > Output: > > Traceback (most recent call last): > > File "", line 1, in > > File "", line 16, in PyExecReplace > > File "", line 22, in > > File "", li

Re: Don't understand a probleme of module time not defined when calling a foo func

2016-05-30 Thread Matt Wheeler
On Mon, 30 May 2016, 21:08 Ni Va, wrote: > > _ > Output: > Traceback (most recent call last): > File "", line 1, in > File "", line 16, in PyExecReplace > File "", line 22, in > File "", line 11, in foo > NameError: global name 'time' is not defined > Based on your tracebac

Don't understand a probleme of module time not defined when calling a foo func

2016-05-30 Thread Ni Va
Hi Evereybody, New in python dev, I don't understand why I obtain a problem of time module import as below in my function foo meanwhile this module is visible from the main core code. Thank you by advance Best Regards Niva # -*- coding: utf-8 -*- import time import sys from timeout import *

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(cale

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 --

module time

2006-02-20 Thread Sergey
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? -- http://mail.python.org/mailman/listinfo/python-list