File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
reference/datetime/datetimezone Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 48
48
<programlisting role =" php" >
49
49
<![CDATA[
50
50
<?php
51
- $tz = new DateTimeZone("Europe/Prague ");
51
+ $tz = new DateTimeZone("Asia/Jakarta ");
52
52
print_r($tz->getLocation());
53
53
print_r(timezone_location_get($tz));
54
54
?>
@@ -59,22 +59,30 @@ print_r(timezone_location_get($tz));
59
59
<![CDATA[
60
60
Array
61
61
(
62
- [country_code] => CZ
63
- [latitude] => 50.08333
64
- [longitude] => 14.43333
65
- [comments] =>
62
+ [country_code] => ID
63
+ [latitude] => -6.16667
64
+ [longitude] => 106.8
65
+ [comments] => Java, Sumatra
66
66
)
67
67
Array
68
68
(
69
- [country_code] => CZ
70
- [latitude] => 50.08333
71
- [longitude] => 14.43333
72
- [comments] =>
69
+ [country_code] => ID
70
+ [latitude] => -6.16667
71
+ [longitude] => 106.8
72
+ [comments] => Java, Sumatra
73
73
)
74
74
]]>
75
75
</screen >
76
76
</example >
77
77
</para >
78
+ <para >
79
+ The <literal >country_code</literal > elements contains the ISO 3166-1
80
+ alpha-2 country code for each entry. The <literal >latitude</literal > and
81
+ <literal >longitude</literal > elements the coordinates of the named city
82
+ from the time zone identifier, and <literal >comments</literal > contain
83
+ (when not &false; ) a hint of where in the given country this timezone
84
+ applies. This information is suitable to present to end-users.
85
+ </para >
78
86
</refsect1 >
79
87
80
88
<refsect1 role =" seealso" >
You can’t perform that action at this time.
0 commit comments