PHP 8.0.26 Released!

date_sub

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

date_sub别名 DateTime::sub()

说明

此函数是该函数的别名: DateTime::sub()

参见

  • DateTimeImmutable::sub() - Subtracts an amount of days, months, years, hours, minutes and seconds
  • DateTime::sub() - 对 DateTime 对象减去一定量的日、月、年、小时、分钟和秒。

add a note

User Contributed Notes

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