Contact: aviboots(AT)netvision.net.il
39,961 questions
51,903 answers
573 users
h = 2 m = 13 s = 30 seconds = h * 3600 + m * 60 + s print(seconds) ''' run: 8010 '''
def get_seconds(the_time): h, m, s = the_time.split(':') return int(h) * 3600 + int(m) * 60 + int(s) print(get_seconds('1:07:31')) ''' run: 4051 '''