I have this kind of string:
$duration = "00:20:55.60000";
It was extracted from a video using ffmpeg
. I need to convert it to seconds.
I had tried this: strtotime("1970-01-01 $duration UTC");
(I get it from here) but it's not working. May be because it is containing dot at the seconds part.
Is there a way to convert that string to seconds?