May-09-2017, 10:58 PM
Hi, I have a datetime.time object such as:
I tried:
update_Dt.time()
Output:datetime.time(21, 30)
How do I subtract 5 minutes from the update_Dt.time() object?I tried:
update_Dt.time() - timedelta(minutes=15)I got the error message saying that:
Error:TypeError: unsupported operand type(s) for -: 'datetime.time' and 'datetime.timedelta'
Thank you