I'm a bit confused, but I think you mean it. 1 hour, 23 minutes and 23.03 seconds.
it's not hard. I made this PHP function that does this. My php server does not want to start, so I could not test it, but I think it should work.
function ConvertTimeToSeconds ($ T)
{
$ exp = explode (":", $ T);
$ c = count ($ exp);
$ r = 0;
if ($ c == 2)
{
$ r = (((int) $ exp [0]) * 60) + ((int) $ exp [1]);
} else {
$ r = (((int) $ exp [0]) * 3600) + (((int) $ exp [1]) * 60) + ((int) $ exp [2]);
}
return $ r;
}
ConvertTimeToSeconds ("1: 23: 33.03");
Aaron de windt
source share