中文文档
English
Spanish
French
Japanese
Brazilian
German
Turkish
Russian
date_sun_info »
« date_parse
PHP 手册
函数参考
日期与时间相关扩展
日期/时间
Date/Time 函数
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 对象减去一定量的日、月、年、小时、分钟和秒。