相关文章推荐
乐观的香菜  ·  Support for the ...·  5 月前    · 
道上混的杯子  ·  findstr | Microsoft Learn·  2 年前    · 
豪爽的手套  ·  spring boot - ...·  2 年前    · 
1 $time = new DateTime('2018-11-15T09:21:13.15823439Z');
3 $timestamp = $time->format('U.u');
5 echo $timestamp;
7 // $timestamp = 1542270683.058934

U 表示格式化为 unix 时间戳

u 表示格式化为毫秒

关于 format 格式化参数说明, 可以参考 http://php.net/manual/zh/function.date.php