extract minutes from timedelta python

40

seconds = duration.total_seconds()
hours = seconds // 3600
minutes = (seconds % 3600) // 60
seconds = seconds % 60

Comments

Submit
0 Comments