The workaround I implement is based on full-hour differences between localtime
and gmtime, and uses hardcoded GMT+/-# strings. It obviously will not work 
correctly
for timezones that have half-hour offsets to GMT, but it seemed to do the trick
for what I needed.


----- Original Message -----
From: Alexander Belopolsky <alexander.belopol...@gmail.com>
To: Uwe F. Mayer <uwe_f_ma...@yahoo.com>
Cc: "pypy-dev@python.org" <pypy-dev@python.org>
Sent: Wednesday, June 13, 2012 5:22 PM
Subject: Re: [pypy-dev] Patches for Pypy under cygwin

On Mon, Apr 30, 2012 at 7:05 PM, Uwe F. Mayer <uwe_f_ma...@yahoo.com> wrote:
> In particular the work-around for the tm structure to get by without the
> tm_gmtoff and tm_zone fields may be of interest, as it allows compilation of
> the rctime module on systems that don't have it, such as some versions of
> SunOS.

Interesting and timely.  I am about to add limited tm_gmtoff/tm_zone
support to CPython.  See <http://bugs.python.org/issue1667546>.

_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to