Hello. Historical question ;) Anyone can explain why function timegm is placed into module calendar, not to module time, where it would be near with similar function mktime?
Sergey> Historical question ;) Sergey> Anyone can explain why function timegm is placed into module Sergey> calendar, not to module time, where it would be near with Sergey> similar function mktime? Historical accident. ;-) Skip
On Tue, 2006-02-21 at 22:47 -0600, skip@pobox.com wrote:
Sergey> Historical question ;)
Sergey> Anyone can explain why function timegm is placed into module Sergey> calendar, not to module time, where it would be near with Sergey> similar function mktime?
Historical accident. ;-)
It seems time contains a simple wrapper around the equivalent C
functions. There is no C equivalent to timegm() (how do they do it?).
The timegm() function is implemented in python using the datetime
module. The name sux BTW.
It would be nice if there was a time.mkgmtime(), but it would need to be
implemented in C.
--
Donovan Baarda
participants (3)
-
Donovan Baarda
-
Sergey Dorofeev
-
skip@pobox.com