开发者

time conversion zendframework integer to time php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 8 years ago.

开发者_Python百科 Improve this question

i have time in a format of an integer example:(454 seconds) and i need to convert it to a time format example:(00:07:34) any function can help me to do this??


You can do it using Zend_Date:

$time = new Zend_Date();
$time->setTime('00:00:00');
$time->addSecond(454);
echo $time->toString('HH:mm:ss'); // result 00:07:34
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜