日期时间转时间戳
echo strtotime('2020-10-13 18:26:33') //输出 1602584793
时间戳转日期时间
echo date("Y-m-d H:i:s",1602584793);//输出2020-10-13 18:26:33
网友回复
日期时间转时间戳
echo strtotime('2020-10-13 18:26:33') //输出 1602584793
时间戳转日期时间
echo date("Y-m-d H:i:s",1602584793);//输出2020-10-13 18:26:33
网友回复