code: def is_time_day_valid(self, timestamp):
          
          (start_time, end_time) = self.get_start_and_end_time(timestamp)
          return start_time <= timestamp <= end_time
docs: Check if it is within start time and end time of the DateRange
  
          :param timestamp: time to check
          :type timestamp: int
          :return: True if t in range, False otherwise
          :rtype: bool