public function modify(string $modify): DateTime
    {
        $dateTime = $this->dateTime()->modify($modify);

        return static::fromNative($dateTime);
    }
public function modify(string $modify): DateTime
    {
        $dateTime = $this->dateTime()->modify($modify);

        return static::fromNative($dateTime);
    }
public function modify ( string $ modify ) : DateTime { $ dateTime = $ this -> dateTime ( ) -> modify ( $ modify ) ; return static :: fromNative ( $ dateTime ) ; }
Creates an instance with a modified timestamp

Alters the timestamp of the DateTime by incrementing or decrementing in
a format accepted by strtotime().

@param string $modify A date/time string

@return DateTime
Creates an instance with a modified timestamp