##// END OF EJS Templates
util: make strdate's defaults default value a dict...
Gregory Szorc -
r31404:7409eb69 default
parent child Browse files
Show More
@@ -1830,7 +1830,7 b' def parsetimezone(s):'
1830 def strdate(string, format, defaults=None):
1830 def strdate(string, format, defaults=None):
1831 """parse a localized time string and return a (unixtime, offset) tuple.
1831 """parse a localized time string and return a (unixtime, offset) tuple.
1832 if the string cannot be parsed, ValueError is raised."""
1832 if the string cannot be parsed, ValueError is raised."""
1833 defaults = defaults or []
1833 defaults = defaults or {}
1834
1834
1835 # NOTE: unixtime = localunixtime + offset
1835 # NOTE: unixtime = localunixtime + offset
1836 offset, date = parsetimezone(string)
1836 offset, date = parsetimezone(string)
General Comments 0
You need to be logged in to leave comments. Login now