mirror of
https://github.com/python/cpython.git
synced 2024-12-25 01:34:48 +08:00
Allow am/pm as well as AM/PM (C9X behaviour).
This commit is contained in:
parent
a454ebd924
commit
00ce51e38e
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user