DateTimeImmutable::sub

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

DateTimeImmutable::sub 年月日時分秒の値を引く

説明

public DateTimeImmutable::sub(DateInterval $interval): DateTimeImmutable

DateTime::sub() と似ていますが、 DateTimeImmutable で動作します。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top