Kaydet (Commit) 00ce51e3 authored tarafından Jack Jansen's avatar Jack Jansen

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

üst a454ebd9
...@@ -23,8 +23,8 @@ def strftest(now): ...@@ -23,8 +23,8 @@ def strftest(now):
gmt = time.gmtime(now) gmt = time.gmtime(now)
now = time.localtime(now) now = time.localtime(now)
if now[3] < 12: ampm='AM' if now[3] < 12: ampm='(AM|am)'
else: ampm='PM' else: ampm='(PM|pm)'
jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6)) jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment