Home Menu

timezone_location_get

Returns location information for a timezone

Syntax

timezone_location_get ( DateTimeZone $object ) : array

Parameters

object

A DateTimeZone object returned by timezone_open()

Return

Array containing location information about timezone or FALSE on failure.

Examples

<?

$object = timezone_open("Europe/Prague");

$return = timezone_location_get($object);

print_r($return);

?>
Array
(
    [country_code] => CZ
    [latitude] => 50.08333
    [longitude] => 14.43333
    [comments] => 
)

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms