DateTimeImmutable::createFromInterface
指定された DateTimeInterface オブジェクトをカプセル化した、新しい DateTimeImmutable オブジェクトを返す
&reftitle.description;
public static DateTimeImmutableDateTimeImmutable::createFromInterface
DateTimeInterfaceobject
&reftitle.parameters;
object
変更できないバージョンに変換する DateTimeInterface オブジェクト。
このオブジェクトは変更されませんが、
同じ日付、時刻、タイムゾーンの情報が入った新しい
DateTimeImmutable オブジェクトが作成されます。
&reftitle.returnvalues;
新しいDateTimeImmutable クラスのインスタンスを返します。
&reftitle.examples;
DateTimeImmutable オブジェクトを作る