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