Possible Duplicate:
How do I format an amount of milliseconds into minutes:seconds:milliseconds in PHP?
In PHP, I need help to convert a string with hundredths to “minutes:seconds.hundredths”.
So for example if I have this: ‘10420’ and want to display it like this: 01:44.20.
I played a bit with php date() but I couldn’t get it to work.
Any Ideas?
Like this (should be self-explanatory):
Your requirements are funny, because it looks like you want to ignore the hours part.
You can still add it back with
gmdate("H:i:s", $secs), if you want. Of course, also this works well only up to 24h.