code: def get_min_from_t(self, timestamp):
          
          if self.is_time_valid(timestamp):
              return timestamp
          t_day_epoch = get_day(timestamp)
          tr_mins = self.get_min_sec_from_morning()
          return t_day_epoch + tr_mins
docs: Get next time from t where a timerange is valid (withing range)
  
          :param timestamp: base time to look for the next one
          :return: time where a timerange is valid
          :rtype: int