DateTimeZone::getLocation

timezone_location_get

(PHP 5 >= 5.3.0, PHP 7)

DateTimeZone::getLocation -- timezone_location_get������ʱ����صĶ�λ��Ϣ��

˵��

���������

public DateTimeZone::getLocation ( void ) : array

���̻����

timezone_location_get ( DateTimeZone $object ) : array

������ʱ����صĶ�λ��Ϣ���������Ҵ��룬γ��/���Ⱥͽ��͡�

����

object

�����̻������ timezone_open() ���ص� DateTimeZone ����

����ֵ

���飬������ʱ����صĶ�λ��Ϣ��

����

Example #1 DateTimeZone::getLocation() �����ķ�����

<?php
$tz 
= new DateTimeZone("Europe/Prague");
print_r($tz->getLocation());
print_r(timezone_location_get($tz));
?>

�������̻������

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