from datetime import date from datetime import time from datetime import datetime from datetime import timedelta time_delt1 = timedelta(days= 270, hours = 9, minutes = 18) print(time_delt1) # Sample Output 270 days, 9:18:00