def includes(self, query):
        """Does this schedule include the provided time?
        query should be a datetime (naive or timezone-aware)"""
        query = self.to_timezone(query)
        return any(self.intervals(range_start=query, range_end=query))
def includes(self, query):
        """Does this schedule include the provided time?
        query should be a datetime (naive or timezone-aware)"""
        query = self.to_timezone(query)
        return any(self.intervals(range_start=query, range_end=query))
def includes ( self , query ) : query = self . to_timezone ( query ) return any ( self . intervals ( range_start = query , range_end = query ) )
Does this schedule include the provided time?
        query should be a datetime (naive or timezone-aware)
Does this schedule include the provided time? query should be a datetime ( naive or timezone - aware )