from datetime import datetime, timedelta current_time = datetime.now().time() new_time = current_time - timedelta(seconds=10) >> TypeError: unsupported operand type(s) for -: 'datetime.time' and 'datetime.timedelta'
How can I subtract time from a datetime.time object? This code only works with datetime.datetime objects.
source share