Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getseconds(time):
- splittime = time.split(':')
- return int(splittime[0])*60+int(splittime[1])
- #seconds = minutes*60.
- print getseconds('10:15')
- print getseconds('12:00')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement