I have two string objects:
dt1[1]="00:58:00"
dt2[1]="01:02:00"
If I do,
FMT='%H:%M:%S'
SD=datetime.datetime(*time.strptime(dt1[1], FMT)[:6])
FD=datetime.datetime(*time.strptime(dt2[1], FMT)[:6])
it translates to 1900-01-01 00:58:00 and 1900-01-01 01:02:00 but I want only the time part not the date.
I have converted date into string and subtracted only the time part from it.
Now i need to convert them to time object again and do dt2[1]-dt[1] to find the time difference.
How can I do it.