##// END OF EJS Templates
dateutil: correct default for Ymd in parsedate...
Jun Wu -
r44170:aef7b91d default draft
parent child Browse files
Show More
@@ -209,6 +209,8 b' def parsedate(date, formats=None, bias=N'
209 209 True
210 210 >>> tz == strtz
211 211 True
212 >>> parsedate(b'2000 UTC', formats=extendeddateformats)
213 (946684800, 0)
212 214 """
213 215 if bias is None:
214 216 bias = {}
@@ -244,7 +246,8 b' def parsedate(date, formats=None, bias=N'
244 246 if part[0:1] in b"HMS":
245 247 b = b"00"
246 248 else:
247 b = b"0"
249 # year, month, and day start from 1
250 b = b"1"
248 251
249 252 # this piece is for matching the generic end to today's date
250 253 n = datestr(now, b"%" + part[0:1])
General Comments 0
You need to be logged in to leave comments. Login now