]> granicus.if.org Git - python/commit
SF patch #691928: Use datetime in _strptime
authorRaymond Hettinger <python@rcn.com>
Sun, 9 Mar 2003 07:44:42 +0000 (07:44 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 9 Mar 2003 07:44:42 +0000 (07:44 +0000)
commit1fdb6335304551b79838523811525d3c59d901ae
tree726a079ac1c8adddc5493ec9ecb87acd94de0dce
parentc8df5780e116a44682df91773eb9cad13e6699b0
SF patch #691928: Use datetime in _strptime
Contributed by Brett Cannon.

To prevent code duplication, I patched _strptime to use datetime's date
object to do Julian day, Gregorian, and day of the week calculations.

Patch also includes new regression tests to test results and the
calculation gets triggered.

Very minor comment changes and the contact email are also changed.
Lib/_strptime.py
Lib/test/test_strptime.py