How to add hours to current time in python

I am able to get the current time as below:

from datetime import datetime
str(datetime.now())[11:19]

Result

'19:43:20'

Now, I am trying to add 9 hours to the above time, how can I add hours to current time in Python?

3 Answers
3

Leave a Comment