Output is in seconds. convert to hh:mm:ss format in php

后端 未结 13 1638
礼貌的吻别
礼貌的吻别 2020-12-01 13:54
  1. My output is in the format of 290.52262423327 seconds. How can i change this to 00:04:51?

  2. The same output i want to show in seconds and in HH:MM:SS

相关标签:
13条回答
  • 2020-12-01 14:20

    Numero uno... http://www.ckorp.net/sec2time.php (use this function)

    Numero duo... echo round(290.52262423327,2);

    0 讨论(0)
提交回复
热议问题