I saw in a related post that you cant add with .timedelta less than 24 hours but i need to really add a hour to my time, my code is this:
Hour =df['Hour'].values[0]
16:42:00
The column Hour is a datetime.time
And im trying to add one hour like this :
from datetime import date
HourPlus=datetime.datetime.combine(date.today() +datetime.timedelta(hours=1),Hour)
But only works if i add days=1 and not hours, how can i solve this ?
from datetime import date
HourPlus=datetime.datetime.combine(date.today() +datetime.timedelta(days=1),Hour)
2021-04-14 16:42:00