python timedelta
from datetime import timedelta # Create a delta time datetime_delta = timedelta(weeks = 1, days = 2, hours = 4, minutes = 10, seconds = 8, milliseconds = 25, microseconds = 8) print("Delta datetime :- ", datetime_delta) >>> Delta datetime :- 9 days, 4:10:08.025008