]> granicus.if.org Git - python/commit
Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)
authorAlexander Belopolsky <abalkin@users.noreply.github.com>
Mon, 31 Jul 2017 14:26:50 +0000 (10:26 -0400)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2017 14:26:50 +0000 (10:26 -0400)
commit018d353c1c8c87767d2335cd884017c2ce12e045
tree36a485b724114e393901f3fa16d741cc63bd7cb2
parentc6ea8974e2d939223bfd6d64ee13ec89c090d2e0
Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)

* Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets.

* bpo-5288: Implemented %z formatting of sub-minute offsets.

* bpo-5288: Removed mentions of the whole minute limitation on TZ offsets.

* bpo-5288: Removed one more mention of the whole minute limitation.

Thanks @csabella!

* Fix a formatting error in the docs

* Addressed review comments.

Thanks, @haypo.
Doc/library/datetime.rst
Lib/datetime.py
Lib/test/datetimetester.py
Misc/NEWS.d/next/Library/2017-07-26-13-18-29.bpo-5288.o_xEGj.rst [new file with mode: 0644]
Modules/_datetimemodule.c