reference/intl/dateformatter/format.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -11,17 +11,17 @@
11
11
<para>
12
12
&style.oop;
13
13
</para>
14
-
<methodsynopsis>
15
-
<modifier>public</modifier> <type>string</type><methodname>IntlDateFormatter::format</methodname>
16
-
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
17
-
</methodsynopsis>
14
+
<methodsynopsis role="IntlDateFormatter">
15
+
<modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>IntlDateFormatter::format</methodname>
16
+
<methodparam><type class="union"><type>IntlCalendar</type><type>DateTimeInterface</type><type>array</type><type>string</type><type>int</type><type>float</type></type><parameter>datetime</parameter></methodparam>
17
+
</methodsynopsis>
18
18
<para>
19
19
&style.procedural;
20
20
</para>
21
21
<methodsynopsis>
22
-
<type>string</type><methodname>datefmt_format</methodname>
23
-
<methodparam><type>IntlDateFormatter</type><parameter>fmt</parameter></methodparam>
24
-
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
22
+
<type class="union"><type>string</type><type>false</type></type><methodname>datefmt_format</methodname>
23
+
<methodparam><type>IntlDateFormatter</type><parameter>formatter</parameter></methodparam>
24
+
<methodparam><type class="union"><type>IntlCalendar</type><type>DateTimeInterface</type><type>array</type><type>string</type><type>int</type><type>float</type></type><parameter>datetime</parameter></methodparam>
25
25
</methodsynopsis>
26
26
<para>
27
27
Formats the time value as a string.
...
...
@@ -33,7 +33,7 @@
33
33
<para>
34
34
<variablelist>
35
35
<varlistentry>
36
-
<term><parameter>fmt</parameter></term>
36
+
<term><parameter>formatter</parameter></term>
37
37
<listitem>
38
38
<para>
39
39
The date formatter resource.
...
...
@@ -41,10 +41,10 @@
41
41
</listitem>
42
42
</varlistentry>
43
43
<varlistentry>
44
-
<term><parameter>value</parameter></term>
44
+
<term><parameter>datetime</parameter></term>
45
45
<listitem>
46
46
<para>
47
-
Value to format. This may be a <classname>DateTime</classname> object, an
47
+
Value to format. This may be a <classname>DateTimeInterface</classname> object, an
48
48
<classname>IntlCalendar</classname> object, a <type>numeric</type> type
49
49
representing a (possibly fractional) number of seconds since epoch or an
50
50
<type>array</type> in the format output by
...
...
@@ -86,17 +86,18 @@
86
86
</thead>
87
87
<tbody>
88
88
<row>
89
-
<entry>5.5.0/PECL 3.0.0</entry>
89
+
<entry>7.1.5</entry>
90
90
<entry>
91
-
Support for providing <classname>IntlCalendar</classname> objects to the
92
-
<parameter>value</parameter> parameter was added.
91
+
Support for providing general <classname>DateTimeInterface</classname> objects to the
92
+
<parameter>datetime</parameter> parameter was added. Formerly, only proper
93
+
<classname>DateTime</classname> objects were supported.
93
94
</entry>
94
95
</row>
95
96
<row>
96
-
<entry>5.3.4</entry>
97
+
<entry>PECL 3.0.0</entry>
97
98
<entry>
98
-
Support for providing <classname>DateTime</classname> objects to the
99
-
<parameter>value</parameter> parameter was added.
99
+
Support for providing <classname>IntlCalendar</classname> objects to the
100
+
<parameter>datetime</parameter> parameter was added.
100
101
</entry>
101
102
</row>
102
103
</tbody>
...
...
@@ -268,7 +269,6 @@ After changing timezone:
268
269
</para>
269
270
</refsect1>
270
271
</refentry>
271
-

272
272
<!-- Keep this comment at the end of the file
273
273
Local variables:
274
274
mode: sgml
275
275