Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
time.mktime据说是time.localtime的倒数。
time.mktime
time.gmtime 的倒数在哪里?需要将 email.utils.parsedate 的结果转换为正常的 UNIX 时间。
唯一的近似是这样的hack:
time.mktime(email.utils.parsedate(smth)) - time.altzone
怎么做才对?
看着calendar.timegm(tuple)
calendar.timegm(tuple)