|
DateTimeImmutable::setMicrosecond時刻のマイクロ秒部分を設定する 説明
#[\NoDiscard(message: "as DateTimeImmutable::setMicrosecond() does not modify the object itself")]
public static DateTimeImmutable::setMicrosecond(int
$microsecond)元のオブジェクトを基にマイクロ秒部分を変更した、 新しい DateTimeImmutable オブジェクトを返します。 パラメータ
戻り値変更されたデータを持つ、新しい DateTimeImmutable オブジェクトを返します。 エラー / 例外
例例1 DateTimeImmutable::setMicrosecond の例 上の例の出力は以下となります。 1970-01-01 00:02:03.456789 1970-01-01 00:02:03.987654 参考
|