How to set days and time to timedelta in Python

1 Answer

0 votes
from datetime import timedelta

day = timedelta(days=2, hours=3, minutes=15, seconds=24)

print(day)


'''
run:
 
2 days, 3:15:24
 
'''

 



answered Nov 14, 2018 by avibootz
...