🔥PHP マイクロ秒 "Y-m-d\\TH:i:s.uP" PHP7.1以降のみ対応2024/01/05に公開PHPPHP 8PHP 7datetimeiso8601techvar_dump(date_create()->format('Y-m-d\TH:i:s.uP')); echo '<br>'; var_dump((new DateTime())->format('Y-m-d\TH:i:s.uP')); echo '<br>'; php -r "echo date_create()->format('Y-m-d\TH:i:s.uP');" php -r "echo (new DateTime())->format('Y-m-d\TH:i:s.uP');" 備忘録 https://qiita.com/hnw/items/665ff303d37d50fc0bff https://www.php.net/manual/ja/class.datetimeinterface.php Discussion
Discussion