summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMario Corchero <mcorcherojim@bloomberg.net>2019-06-04 15:18:11 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-06-04 15:18:10 (GMT)
commitf0b5ae4567637b24035ecda93a3240efc96b6dd9 (patch)
treedefd933d5ed4a76a61048362c6d1636231221ad2 /Lib
parentca612a9728b83472d9d286bbea74972d426ed344 (diff)
downloadcpython-f0b5ae4567637b24035ecda93a3240efc96b6dd9.zip
cpython-f0b5ae4567637b24035ecda93a3240efc96b6dd9.tar.gz
cpython-f0b5ae4567637b24035ecda93a3240efc96b6dd9.tar.bz2
bpo-30699: Improve example on datetime tzinfo instances (GH-4290)
* 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".
Diffstat (limited to 'Lib')
0 files changed, 0 insertions, 0 deletions