[Python-checkins] CVS: python/dist/src/Lib/test test_strftime.py,1.20,1.21
Jack Jansen
python-dev@python.org
Fri, 15 Sep 2000 05:57:39 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv22703
Modified Files:
test_strftime.py
Log Message:
Allow am/pm as well as AM/PM (C9X behaviour).
Index: test_strftime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_strftime.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** test_strftime.py 1999/04/08 20:22:46 1.20
--- test_strftime.py 2000/09/15 12:57:35 1.21
***************
*** 24,29 ****
now = time.localtime(now)
! if now[3] < 12: ampm='AM'
! else: ampm='PM'
jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6))
--- 24,29 ----
now = time.localtime(now)
! if now[3] < 12: ampm='(AM|am)'
! else: ampm='(PM|pm)'
jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6))