➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: Time module is missing inverse of gmtime()
类型: enhancement Stage:
Components: Library (Lib) Versions: Python 2.6
process
状态: closed Resolution: duplicate
Dependencies: 后续: Time zone-capable variant of time.localtime
View: 1667546
分配给: christian.heimes 抄送列表: christian.heimes, jemfinch, pboddie
优先级: normal 关键字: patch

Created on 2005-07-26 13:04 by jemfinch, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25869 - (view) Author: Jeremy Fincher (jemfinch) 日期: 2005-07-26 13:04
The time module has the inverse function of localtime() in its mktime
() function, but is missing the inverse of gmtime().

After a bit of searching, I found the calendar module function timegm
(), which claims to be the inverse of gmtime().

Is there any reason the time module shouldn't provide the inverse of 
gmtime()?  It's obviously needed, as the calendar module has a 
version for its own use since the time module doesn't provide one.
msg25870 - (view) Author: Paul Boddie (pboddie) 日期: 2007-03-11 21:13
See patch #1667546 for an implementation of timegm.
历史
日期 用户 动作 参数
2022-04-11 14:56:12admin修改github: 42222
2008-01-06 14:21:48georg.brandl修改状态: open -> closed
resolution: duplicate
后续: Time zone-capable variant of time.localtime
2008-01-06 12:00:40christian.heimes修改keywords: + patch
assignee: christian.heimes
type: enhancement
抄送: + christian.heimes
versions: + Python 2.6
2005-07-26 13:04:52jemfinch创建