如何用PHP从以下字符串创建DateTime对象:2022-06-21T05:52:46.648533678Z
?"点"后面有九个数字,也就是秒之后.
我试着使用下一个变种:
<?php
Carbon::createFromFormat('Y-m-d\TH:i:s.uP', '2022-06-21T05:52:46.648533678Z');
Carbon::createFromFormat('Y-m-d\TH:i:s.vP', '2022-06-21T05:52:46.648533678Z');
并且总是得到一个错误:
The timezone could not be found in the database