summaryrefslogtreecommitdiff
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
authorMario Corchero <mcorcherojim@bloomberg.net>2019-06-04 16:18:11 +0100
committerVictor Stinner <vstinner@redhat.com>2019-06-04 17:18:10 +0200
commitf0b5ae4567637b24035ecda93a3240efc96b6dd9 (patch)
treedefd933d5ed4a76a61048362c6d1636231221ad2 /Lib/test/test_random.py
parentca612a9728b83472d9d286bbea74972d426ed344 (diff)
downloadcpython-git-f0b5ae4567637b24035ecda93a3240efc96b6dd9.tar.gz
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/test/test_random.py')
0 files changed, 0 insertions, 0 deletions