Compare if the parameter HH:MM is in the time range.

def between(self, time_):
        """
        Compare if the parameter HH:MM is in the time range.
        """
        hour = int(time_[0:2])
        minute = int(time_[3:5])
        return not (
            hour < self.h1 or hour > self.h2 or
            (hour == self.h1 and minute < self.m1) or
            (hour == self.h2 and minute > self.m2)
        )