共 1 篇文章 |
|
php时间戳和日期相互转换。php获取当前10位数的时间戳。php //函数的方式 $time = time(); //对象的方式 $date = new \DateTime(); echo $date->getTimestamp(); //对象另一种方式 $date = date_create(); echo date_timestamp_get($date); ?>php获取13位的时间戳。php $m = microtime();php $time... 阅473 转1 评0 公众公开 17-12-29 13:15 |