I am trying to convert the string into the time,
i have the following string,
0100 will have to give time 01:00:00
0130 will have to give time 01:30:00 likewise,
Anyone have an idea i am trying this
from datetime import datetime
import time
p = "0100"
op = time.strftime("%H:%M:%S", time.gmtime(float(p)) )
is giving me output like 00:01:40
how could i achieve my desired results