code: def get_first_sec_out_from_morning(self):
          
          # If start at 0:0, the min out is the end
          if self.hstart == 0 and self.mstart == 0:
              return self.hend * 3600 + self.mend * 60
          return 0
docs: Get the first second (from midnight) where we are out of the timerange
  
          :return: seconds from midnight where timerange is not effective
          :rtype: int