I was using :
total_time=datetime.time(int(total_time_text.replace("h","").replace("m","").split(" ")[0]),int(total_time_text.replace("h","").replace("m","").split(" ")[1]),0)
to store the time length.
But when I have :
total_time_text ="26h 50m"
I get an exception that
'hour must be in 0..23'
so the type “time” is not properly for this var. What I must to use?
datetime.timedelta