From 00232074c553aa75f1962b476e844fb2a351152c Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker <cmb@php.net> Date: Fri, 9 Oct 2020 08:27:52 +0000 Subject: [PATCH] Fix #80207: DateTimeZone::getTransitions return array git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350825 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../datetime/datetimezone/gettransitions.xml | 43 ++++++++++++++++++- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/reference/datetime/datetimezone/gettransitions.xml b/reference/datetime/datetimezone/gettransitions.xml index 90f4a782e4..aaa5f91349 100644 --- a/reference/datetime/datetimezone/gettransitions.xml +++ b/reference/datetime/datetimezone/gettransitions.xml @@ -52,8 +52,47 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Returns numerically indexed array containing associative array with all - transitions on success&return.falseforfailure;. + Returns a numerically indexed array of + transition arrays on success, &return.falseforfailure;. + <table> + <title>Transition Array Structure</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Key</entry> + <entry>Type</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry><literal>ts</literal></entry> + <entry><type>int</type></entry> + <entry>Unix timestamp</entry> + </row> + <row> + <entry><literal>time</literal></entry> + <entry><type>string</type></entry> + <entry><constant>DateTimeInterface::ISO8601</constant> time string</entry> + </row> + <row> + <entry><literal>offset</literal></entry> + <entry><type>int</type></entry> + <entry>Offset to UTC in seconds</entry> + </row> + <row> + <entry><literal>isdst</literal></entry> + <entry><type>bool</type></entry> + <entry>Whether daylight saving time is active</entry> + </row> + <row> + <entry><literal>abbr</literal></entry> + <entry><type>string</type></entry> + <entry>Timezone abbreviation</entry> + </row> + </tbody> + </tgroup> + </table> </para> </refsect1>