• Guido van Rossum's avatar
    Chris Lawrence writes: · 57731607
    Guido van Rossum yazdı
    """
    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.)
    """
    57731607
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...