Error in DateInterval
Closed this issue · 1 comments
usakov-leonid commented
Hi, I catch error, when I do:
from intervals import DateInterval, inf
DateInterval(['2000-01-01', inf])
on 195 line in init you try make:
def coerce_string(self, value):
return self.type(value)
and self.type == datetime.date, and value == '2000-01-01' :)
I install intervals from pypi, v0.3.1
kvesteri commented
Correct format is:
DateInterval([date(2011, 1, 1), inf])