code: def get_min_sec_from_morning(self):
          
          mins = []
          for timerange in self.timeranges:
              mins.append(timerange.get_sec_from_morning())
          return min(mins)
docs: Get the first second from midnight where a timerange is effective
  
          :return: smallest amount of second from midnight of all timerange
          :rtype: int