Hi!
The code is below, i got the solution, i'm just curious why
datetime.time + datetime.timedelta is not working...
The code is below, i got the solution, i'm just curious why
datetime.time + datetime.timedelta is not working...
import datetime
t = datetime.time(7, 0)
d = datetime.datetime(2021, 1, 1, 7, 0)
min_delta = datetime.timedelta(minutes=45)
try:
print(t+min_delta)
except:
print('Error')
x = (d+min_delta)
x = x.strftime("%H:%M")
print(x)
