DateTime::modify
DateTime::modify
date_modify
(PHP 5 >= 5.2.0, PHP 7)
DateTime::modify -- date_modify — Alters the timestamp
Description
Object oriented style
public DateTime DateTime::modify ( string $modify )
Procedural style
DateTime date_modify ( DateTime $object , string $modify )
Alter the timestamp of a DateTime object by incrementing or decrementing in a format accepted by strt