DateTimeImmutable::sub()
(PHP 5 >= 5.5.0, PHP 7)
Subtracts an amount of days, months, years, hours, minutes and seconds
说明
public DateTimeImmutable::sub(DateInterval$interval): DateTimeImmutable
LikeDateTime::sub()but works withDateTimeImmutable.
(PHP 5 >= 5.5.0, PHP 7)
Subtracts an amount of days, months, years, hours, minutes and seconds
public DateTimeImmutable::sub(DateInterval$interval): DateTimeImmutable
LikeDateTime::sub()but works withDateTimeImmutable.