Answers for "python timedelta convert to hours"

1

extract minutes from timedelta python

seconds = duration.total_seconds()
hours = seconds // 3600
minutes = (seconds % 3600) // 60
seconds = seconds % 60
Posted by: Guest on October-09-2020

Code answers related to "python timedelta convert to hours"

Python Answers by Framework

Browse Popular Code Answers by Language