mktime() like function to produce GMT?

Mark Nottingham mnot at pobox.com
Sun May 2 20:16:12 EDT 1999


Python 1.5.2 on RedHat Linux 5.2 (glibc). Is it just me, or does Linux
ignore the TZ environment?

On my venerable IPC (SunOS 5.6), this isn't a problem with 1.5.2, so it's
platform, I think.


Guido wrote:
> Hmm...  For me, in the US Eastern timezone, with Python 1.5.2, this
> works.  It's been a long time but I really believe that the theory of
> mktime predicts that it *should* work -- if you tell it not to use
> daylight savings time it shouldn't.
>
> Which Python version are you using?  (There has been some weirdness in
> previous versions.)  What Unix platform?  It's sometimes hard to get
> time.timezone to be the right value (very convoluted code in
> timemodule.c, which has changed again in 1.5.2).  Could it that
> there's a bug there because your DST is on the other half of the year?






More information about the Python-list mailing list