docs: def contains(self, time: datetime.datetime,
                   inclusive: bool = True) -> bool:
          """
          Does the interval contain a momentary time?
  
          Args:
              time: the ``datetime.datetime`` to check
              inclusive: use inclusive rather than exclusive range checks?
          """
          if inclusive:
              return self.start <= time <= self.end
          else:
              return self.start < time < self.end