MCPcopy Index your code
hub / github.com/clips/pattern / __add__

Method __add__

pattern/db/__init__.py:129–131  ·  view source on GitHub ↗
(self, time)

Source from the content-addressed store, hash-verified

127 def __isub__(self, time):
128 return self.__sub__(time)
129 def __add__(self, time):
130 d = datetime.__add__(self, time)
131 return date(d.year, d.month, d.day, d.hour, d.minute, d.second, d.microsecond, self.format)
132 def __sub__(self, time):
133 d = datetime.__sub__(self, time)
134 if isinstance(d, timedelta):

Callers 1

__iadd__Method · 0.95

Calls 1

dateFunction · 0.85

Tested by

no test coverage detected