File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: date.py,v 1.30 2002-09-23 07:09:15 richard Exp $
18+ # $Id: date.py,v 1.31 2002-09-23 07:27:23 richard Exp $
1919
2020__doc__ = """
2121Date, time and time interval handling.
@@ -215,11 +215,11 @@ def pretty(self):
215215 return str
216216
217217 def set (self , spec , offset = 0 , date_re = re .compile (r'''
218- ((( ?P<y>\d{4} -)?((?P<m>\d\d?)-(?P<d>\d\d?))?)? # yyyy-mm-dd
218+ ((?P<y>\d\d\d\d -)?((?P<m>\d\d?)-(?P<d>\d\d?))?)? # yyyy-mm-dd
219219 (?P<n>\.)? # .
220220 (((?P<H>\d?\d):(?P<M>\d\d))?(:(?P<S>\d\d))?)? # hh:mm:ss
221221 (?P<o>.+)? # offset
222- ''' , re .VERBOSE ), serialised_re = re .compile ('''
222+ ''' , re .VERBOSE ), serialised_re = re .compile (r '''
223223 (\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)
224224 ''' , re .VERBOSE )):
225225 ''' set the date to the value in spec
You can’t perform that action at this time.
0 commit comments