mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Use a proper timezone for the example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@296447 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
aaebccf8bb
commit
804f1000ae
1 changed files with 31 additions and 9 deletions
|
@ -85,10 +85,10 @@
|
|||
<example>
|
||||
<title>A <function>timezone_transitions_get</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$timezone = new DateTimeZone("CET");
|
||||
print_r(reset($timezone->getTransitions()));
|
||||
<![CDATA[<?php
|
||||
$timezone = new DateTimeZone("Europe/London");
|
||||
$transitions = $timezone->getTransitions();
|
||||
print_r(array_slice($transitions, 0, 3));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -97,11 +97,33 @@ print_r(reset($timezone->getTransitions()));
|
|||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
[ts] => -1693706400
|
||||
[time] => 1916-04-30T22:00:00+0000
|
||||
[offset] => 7200
|
||||
[isdst] => 1
|
||||
[abbr] => CEST
|
||||
[0] => Array
|
||||
(
|
||||
[ts] => -9223372036854775808
|
||||
[time] => -292277022657-01-27T08:29:52+0000
|
||||
[offset] => 3600
|
||||
[isdst] => 1
|
||||
[abbr] => BST
|
||||
)
|
||||
|
||||
[1] => Array
|
||||
(
|
||||
[ts] => -1691964000
|
||||
[time] => 1916-05-21T02:00:00+0000
|
||||
[offset] => 3600
|
||||
[isdst] => 1
|
||||
[abbr] => BST
|
||||
)
|
||||
|
||||
[2] => Array
|
||||
(
|
||||
[ts] => -1680472800
|
||||
[time] => 1916-10-01T02:00:00+0000
|
||||
[offset] => 0
|
||||
[isdst] =>
|
||||
[abbr] => GMT
|
||||
)
|
||||
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
|
|
Loading…
Reference in a new issue