首页 > IT职业 > IT职场 > php中datetime时间和int时间互相转换
php中datetime时间和int时间互相转换
int时间转换datetime时间
| 1 |
echo date("Y-m-d H:i:s", 1210003200);
|
datetime时间转换int时间
| 1 |
echo strtotime("2008-9-27 16:30:30");
|
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1364/viewspace-2810891/ ,如需转载,请注明出处,否则将追究法律责任。