Staging
v0.8.1
v0.8.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
Tip revision: 57731607c3993597f5b28c038622bbc8962ae098 authored by Guido van Rossum on 29 March 1999, 19:12:04 UTC
Chris Lawrence writes:
Chris Lawrence writes:
Tip revision: 5773160
File | Mode | Size |
---|---|---|
Makefile.in | -rw-r--r-- | 2.2 KB |
acceler.c | -rw-r--r-- | 4.7 KB |
assert.h | -rw-r--r-- | 1.9 KB |
bitset.c | -rw-r--r-- | 2.4 KB |
firstsets.c | -rw-r--r-- | 3.6 KB |
grammar.c | -rw-r--r-- | 5.9 KB |
grammar1.c | -rw-r--r-- | 2.5 KB |
intrcheck.c | -rw-r--r-- | 4.7 KB |
listnode.c | -rw-r--r-- | 2.5 KB |
metagrammar.c | -rw-r--r-- | 3.6 KB |
myreadline.c | -rw-r--r-- | 4.0 KB |
node.c | -rw-r--r-- | 2.7 KB |
parser.c | -rw-r--r-- | 9.6 KB |
parser.h | -rw-r--r-- | 2.4 KB |
parsetok.c | -rw-r--r-- | 4.8 KB |
pgen.c | -rw-r--r-- | 16.1 KB |
pgen.h | -rw-r--r-- | 1.7 KB |
pgenmain.c | -rw-r--r-- | 5.1 KB |
printgrammar.c | -rw-r--r-- | 4.0 KB |
tokenizer.c | -rw-r--r-- | 17.2 KB |
tokenizer.h | -rw-r--r-- | 3.3 KB |
Computing file changes ...