I have some strings similar to the following:
"1h 43m"
"4d 21h"
"59m 55s"
How would I go about converting these times to the total seconds as an int/float?
For example:
"1h 43s" ----> 3643
"4d 21h" ----> 421200
"59m 55s" ----> 3595
Any advice would be greatly appreciated.