DateTimeImmutable::modify

Creates a new object with modified timestamp

Beschreibung

public DateTimeImmutable DateTimeImmutable::modify ( string $modify )

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..