module time

S

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

jean-michel bain-cornu

Sergey said:
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
 
F

Fredrik Lundh

Sergey said:
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?
Help on function timegm in module calendar:

timegm(tuple)
Unrelated but handy function to calculate Unix timestamp from GMT.

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,108
Latest member
AmeliaAmad

Latest Threads

Top