I have a string
variable some_time = "12:30"
, and I want to add 2 hours to it so the result is "14:30"
.
I believe by first turning the string into a timeformat,
temp_time = datetime.datetime.strptime(thetime, '%H:%M').time()
so that
>>>print (temp_time)
12:30:00
And then use Pytz can solve it. But I can't seem to find a Pytz command that deals with hh:mm alone, without yy:dd:mm
Any solutions?