DateTimeImmutable
PHP 手册

DateTimeImmutable::modify

(PHP 5 >= 5.5.0)

DateTimeImmutable::modifyAlters the timestamp

说明

public DateTimeImmutable DateTimeImmutable::modify ( string $modify )

Like DateTime::modify() but works with DateTimeImmutable.


DateTimeImmutable
PHP 手册