How to convert Unix timestamp to hhmmss?

后端 未结 2 417
渐次进展
渐次进展 2020-12-07 04:16

How to convert Unix timestamp (ie. 1286374738) to hhmmss?

相关标签:
2条回答
  • 2020-12-07 04:49

    Use one of the many converter sites: http://convert-unix-time.com http://www.epoch-converter.com

    ... they also have converting examples for many programming languages.

    0 讨论(0)
  • 2020-12-07 04:57
    date('His', $timestamp);
    

    where $timestamp contains the unix timestamp , H = 24-hour format of an hour with leading zeros , can use h = 12-hour format of an hour with leading zeros ; i = Minutes with leading zeros , s = Seconds, with leading zeros

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