This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aepage
Recipients aepage
Date 2016-02-09.15:08:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455030536.64.0.408673098232.issue26321@psf.upfronthosting.co.za>
In-reply-to
Content
##
##  It appears that strptime is ignoring the AM/PM field
##
from datetime import datetime
d1 = datetime.strptime("1:00 PM", "%H:%M %p")
d2 = datetime.strptime("1:00 AM", "%H:%M %p")
d1.hour, d2.hour
(1, 1) # d1 should be 13
d1 == d2
True # and these should not be equal
History
Date User Action Args
2016-02-09 15:08:56aepagesetrecipients: + aepage
2016-02-09 15:08:56aepagesetmessageid: <1455030536.64.0.408673098232.issue26321@psf.upfronthosting.co.za>
2016-02-09 15:08:56aepagelinkissue26321 messages
2016-02-09 15:08:56aepagecreate