def get_time_bounds(self):
        start_time = None
        end_time = None

        for track_segment in self.segments:
            point_start_time, point_end_time = track_segment.get_time_bounds()
            if not start_time and point_start_time:
                start_time = point_start_time
            if point_end_time:
                end_time = point_end_time

        return TimeBounds(start_time, end_time)
Gets the time bound (start and end) of the track.
dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPXTrack.get_time_bounds