how to convert time.time() to minutes in python code example Example: hh:mm to mins in python s = input() s = int(s[:-3]) * 60 + int(s[-2:]) print(s)