##// END OF EJS Templates
util: add default argument to strdate
Bryan O'Sullivan -
r5357:c6adf2be default
parent child Browse files
Show More
@@ -1468,7 +1468,7 b" def datestr(date=None, format='%a %b %d "
1468 1468 s += timezone_format % (-tz / 3600, ((-tz % 3600) / 60))
1469 1469 return s
1470 1470
1471 def strdate(string, format, defaults):
1471 def strdate(string, format, defaults=[]):
1472 1472 """parse a localized time string and return a (unixtime, offset) tuple.
1473 1473 if the string cannot be parsed, ValueError is raised."""
1474 1474 def timezone(string):
General Comments 0
You need to be logged in to leave comments. Login now