I need to convert seconds to "hour:minute:second".
For example: "685" is converted to "00:11:25"
How can I achieve this goal?
P粉7998853112024-03-26 15:16:51
An hour is 3600 seconds and a minute is 60 seconds, why not:
produce:
$ php file.php 0:11:25
(I didn't test this much, so there may be errors with floors etc.)