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
Title: Time module is missing inverse of gmtime()
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Time zone-capable variant of time.localtime
View: 1667546
Assigned To: christian.heimes Nosy List: christian.heimes, jemfinch, pboddie
Priority: normal Keywords: 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) Date: 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) Date: 2007-03-11 21:13
See patch #1667546 for an implementation of timegm.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42222
2008-01-06 14:21:48georg.brandlsetstatus: open -> closed
resolution: duplicate
superseder: Time zone-capable variant of time.localtime
2008-01-06 12:00:40christian.heimessetkeywords: + patch
assignee: christian.heimes
type: enhancement
nosy: + christian.heimes
versions: + Python 2.6
2005-07-26 13:04:52jemfinchcreate