How to convert time.gmtime()-like tuple to UNIX time?
localtime, python, time
Solution
Look at `calendar.timegm(tuple)`
Problem
`time.mktime` is said to be the reverse of time.localtime. Where is the reverse of time.gmtime? It is needed to convert the result of email.utils.parsedate to normal UNIX time. The only approximation is hack like this: ``` time.mktime(email.utils.parsedate(smth)) - time.altzone ``` How to do it right?