开发者

timespamp convert php

How do I convert the standard php timestamp e.g. 1278184362 into this format 2010-07-03 19:00:00 开发者_Python百科?

needs to be exact...

Any ideas guys?


You could do it like this:

$timestamp = 1278184362;

$newDate = Date("Y-m-d H:i:s", $timestamp);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜