Allow am/pm as well as AM/PM (C9X behaviour).

This commit is contained in:
Jack Jansen 2000-09-15 12:57:35 +00:00
parent a454ebd924
commit 00ce51e38e

View File

@ -23,8 +23,8 @@ def strftest(now):
gmt = time.gmtime(now)
now = time.localtime(now)
if now[3] < 12: ampm='AM'
else: ampm='PM'
if now[3] < 12: ampm='(AM|am)'
else: ampm='(PM|pm)'
jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6))