Staging
v0.5.1
https://github.com/python/cpython
Revision 57731607c3993597f5b28c038622bbc8962ae098 authored by Guido van Rossum on 29 March 1999, 19:12:04 UTC, committed by Guido van Rossum on 29 March 1999, 19:12:04 UTC
"""
The GNU folks, in their infinite wisdom, have decided not to implement
altzone in libc6; this would not be horrible, except that timezone
(which is implemented) includes the current DST setting (i.e. timezone
for Central is 18000 in summer and 21600 in winter).  So Python's
timezone and altzone variables aren't set correctly during DST.

Here's a patch relative to 1.5.2b2 that (a) makes timezone and altzone
show the "right" thing on Linux (by using the tm_gmtoff stuff
available in BSD, which is how the GLIBC manual claims things should
be done) and (b) should cope with the southern hemisphere.  In pursuit
of (b), I also took the liberty of renaming the "summer" and "winter"
variables to "july" and "jan".  This patch should also make certain
time calculations on Linux actually work right (like the tz-aware
functions in the rfc822 module).

(It's hard to find DST that's currently being used in the southern
hemisphere; I tested using Africa/Windhoek.)
"""
1 parent 91c488c
History
Tip revision: 57731607c3993597f5b28c038622bbc8962ae098 authored by Guido van Rossum on 29 March 1999, 19:12:04 UTC
Chris Lawrence writes:
Tip revision: 5773160
File Mode Size
BeOS
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.hgtags -rw-r--r-- 1.4 KB
Makefile.in -rw-r--r-- 17.9 KB
README -rw-r--r-- 36.1 KB
acconfig.h -rw-r--r-- 4.2 KB
config.h.in -rw-r--r-- 12.1 KB
configure -rwxr-xr-x 135.4 KB
configure.in -rw-r--r-- 25.1 KB
install-sh -rwxr-xr-x 2.2 KB

README

back to top