php 时间戳转化为时间格式

来自:互联网
时间:2020-10-08
阅读:

php时间戳和普通时间格式互相转化

普通时间转化为时间戳

strtotime($time)

时间戳转化为普通时间

date("Y-m-d H:i:s",$timestamp)
返回顶部
顶部