mktime() like function to produce GMT?

Mark Nottingham mnot at pobox.com
Thu May 6 10:24:37 EDT 1999


> I'm not sure whether introducing Y2K problems in standard lib
> functions is such a good idea. The time.mktime() API already
> has such a Y2K thingie implemented (much the same as the one
> you propose, BTW), which was mainly done to remain backward
> compatible -- there's an environment switch called PYTHONY2K
> to switch the behaviour off.

Yup; I was just saying (poorly) that if the Python version were used on
platforms that don't support timegm(), it should do something Y2Kish as
well, to emulate timemodule's behaviour.





More information about the Python-list mailing list