PHP 8.1.0 Beta 1 available for testing

DateTimeImmutable::sub

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

DateTimeImmutable::sub Subtrai uma quantidade de dias, meses, anos, horas, minutos e segundos

Descrição

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

Similar a DateTime::sub(), mas lida com DateTimeImmutable.

add a note add a note

User Contributed Notes

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