Mar-17-2021, 05:12 PM
Can someone help?
I don't understand why this doesn't work.
I don't understand why this doesn't work.
from datetime import datetime , timedelta z = (timedelta(days=2 ,hours=16 , minutes = 00)) a = (timedelta(hours=0 , minutes =59 )) c = (z+a) b = datetime.now() print (c-b)
Error:TypeError: unsupported operand type(s) for -: 'datetime.timedelta' and 'datetime.datetime'