Menu Riverview Church

DATE_TIMEZONE_SET

Sets the time zone for the DateTime object

SYNTAX

date_timezone_set ( DateTime $object , DateTimeZone $timezone ) : DateTime

PARAMETERS

object

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

timezone

A DateTimeZone object representing the desired time zone.

RETURN

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

EXAMPLES

OBJECT TIMEZONE

1999-12-31 21:00:00

RETURN

1999-12-31 21:00:00

PHP