Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

timezone_open

Description

The timezone_open of Date / Time for PHP creates new DateTimeZone object.

Syntax

timezone_open ( string $timezone ) : DateTimeZone

Parameters

timezone

One of the supported timezone names or an offset value (+0200).

Return

Returns DateTimeZone on success or FALSE on failure.

Examples

1

<?

$timezone = "America/Los_Angeles";

$return = timezone_open($timezone);

print_r($return);

?>
DateTimeZone Object
(
    [timezone_type] => 3
    [timezone] => America/Los_Angeles
)
HomeMenu