(PHP 5 >= 5.5.0, PHP 7, PHP 8)
DateTimeImmutable::__construct -- date_create_immutable — 新しい DateTimeImmutable オブジェクトを返す
オブジェクト指向型
手続き型
$datetime
= "now", ?DateTimeZone $timezone
= null
): DateTimeImmutable|falseDateTime::__construct() と似ていますが、 DateTimeImmutable で動作します。