JavaScript Editor Javascript debugger     Website design 

date_timezone_set

Sets the time zone for the DateTime object (PHP 5 >= 5.1.0)
void date_timezone_set ( DateTime object, DateTimeZone timezone )
void DateTime::setTimezone ( DateTimeZone timezone )

Parameters

object

DateTime object.

timezone

Desired time zone.

Return Values

Returns NULL on success or FALSE on failure.