开发者

timespamp convert php

开发者 https://www.devze.com 2023-01-06 02:51 出处:网络
How do I convert the standard php timestamp e.g. 1278184362 into this format 2010-07-03 19:00:00 开发者_Python百科?

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

精彩评论

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