• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • DateTimeImmutable::sub()

    (PHP 5 >= 5.5.0, PHP 7)

    Subtracts an amount of days, months, years, hours, minutes and seconds

    说明

    publicDateTimeImmutable::sub(DateInterval$interval): DateTimeImmutable

    LikeDateTime::sub()but works withDateTimeImmutable.