• Mario Corchero's avatar
    bpo-30699: Improve example on datetime tzinfo instances (GH-4290) · f0b5ae45
    Mario Corchero yazdı
    * Improve example on tzinfo instances
    
    Move from GMTX to TZX when naming the classes, as GMT1 might be rather
    confusing as seen in the reported issue.
    In addition, move to UTC over GMT and improve the tzname implementation.
    
    * Simplify datetime with tzinfo example
    
    Move the example in the documentation to just use timezone.utc and a
    user defined Kabul timezone rather than having two user defined
    timezones with DST.
    
    Kabul timezone is still interesting as it changes its offset but not
    based on DST. This is more accurate as the previous example was missing
    information about the fold attribute. Additionally, implementing the fold
    attribute was rather complex and probably not relevant enough for the
    section "datetime with tzinfo".
    f0b5ae45
Adı
Son kayıt (commit)
Son güncelleme
.azure-pipelines Loading commit data...
.github 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...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...