def __add__(self, other):
if isinstance(other, timedelta):
o = self.toordinal() + other.days
if 0 < o <= _MAXORDINAL:
return JalaliDate.fromordinal(o)
raise OverflowError("result out of range")
return NotImplemented
评论列表
文章目录