]> granicus.if.org Git - python/commit
strptime(): The code that was adding 12 to PM hours was incorrect
authorBarry Warsaw <barry@python.org>
Thu, 29 Aug 2002 15:29:49 +0000 (15:29 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 29 Aug 2002 15:29:49 +0000 (15:29 +0000)
commit2bdb61479d235339dc92505d5eccaa6accf4d94c
treefad58509a9f8d8695a01a1d157b42e0d3ecf1a96
parent375e0eeacc23394dfe5f21970070ea50ded1160b
strptime(): The code that was adding 12 to PM hours was incorrect
because it added it to 12 PM too.  12 PM should be hour 12 not hour
24.

Also cleaned up a minor style nit.  There are more style problems in
this file that I'll clean up next (but I didn't want them to overwhelm
the substance of this fix).
Lib/_strptime.py