Home Menu

timezone_open

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

<?

$timezone = "America/Los_Angeles";

$return = timezone_open($timezone);

print_r($return);

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

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms