. Advertisement .
..3..
. Advertisement .
..4..
How to add hours to date time in python? Can you give me some suggestions?
Here is a suggestion from ITtutoria team for youfrom datetime import timedelta
t1 = datetime.time(hours, minutes, second) + timedelta(seconds=s, minutes=m, hours=h)
I’m guessing that this will work.