Menu Riverview Church

DATE_MODIFY

Alters the timestamp

SYNTAX

date_modify ( DateTime $object , string $modify ) : DateTime

PARAMETERS

object

A DateTime object returned by date_create(). The function modifies this object.

modify

A date/time string. Valid formats are explained in Date and Time Formats.

RETURN

Returns the DateTime object for method chaining or FALSE on failure.

EXAMPLES

OBJECT MODIFY

2021-12-01 11:59:31

RETURN

DateTime::__set_state(array(
'date' => '2021-12-01 11:59:31.580656',
'timezone_type' => 3,
'timezone' => 'UTC',
))

PHP