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