<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_min_sec_from_morning(self):
 """Get the first second from midnight where a timerange is effective :return: smallest amount of second from midnight of all timerange :rtype: int """

        mins = []
        for timerange in self.timeranges:
            mins.append(timerange.get_sec_from_morning())
        return min(mins)