DateTimeImmutable::modify
(PHP 5 >= 5.5.0)
DateTimeImmutable::modify — Creates a new object with modified timestamp
Beschreibung
Creates a new DateTimeImmutable object with modified timestamp. The original object is not modified.
Parameter-Liste
-
object -
Nur bei prozeduralem Aufruf: Ein von date_create() zurückgegebenes DateTime-Objekt. Diese Funktion verändert dieses Objekt.
-
modify -
Ein Datums/Zeit Zeichenkette. Gültige Formate werden unter Datums- und Zeitformate erläutert.
Rückgabewerte
Returns the newly created objectIm Fehlerfall wird FALSE zurückgegeben..