I used:
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 save the length of time.
But when I have:
total_time_text ="26h 50m"
I get an exception that
'hour must be in 0..23'
therefore, the time type is not suitable for this var. What should i use?
source share