Skip to content

Commit 16f6715

Browse files
[IntlDateFormatter] Add changelog entry about making dateType and timeType optional
1 parent dbdea7f commit 16f6715

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

reference/intl/dateformatter/create.xml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,21 @@
6868
<term><parameter>dateType</parameter></term>
6969
<listitem>
7070
<para>
71-
Date type to use (<constant>none</constant>, <constant>short</constant>,
72-
<constant>medium</constant>, <constant>long</constant>,
73-
<constant>full</constant>). This is one of the <link
71+
Format of the date determined by one of the <link
7472
linkend="intl.intldateformatter-constants">IntlDateFormatter
75-
constants</link>.
73+
constants</link>. The default value is
74+
<constant>IntlDateFormatter::FULL</constant>.
7675
</para>
7776
</listitem>
7877
</varlistentry>
7978
<varlistentry>
8079
<term><parameter>timeType</parameter></term>
8180
<listitem>
8281
<para>
83-
Time type to use (<constant>none</constant>, <constant>short</constant>,
84-
<constant>medium</constant>, <constant>long</constant>,
85-
<constant>full</constant>). This is one of the <link
82+
Format of the time determined by one of the <link
8683
linkend="intl.intldateformatter-constants">IntlDateFormatter
87-
constants</link>.
84+
constants</link>. The default value is
85+
<constant>IntlDateFormatter::FULL</constant>.
8886
</para>
8987
</listitem>
9088
</varlistentry>
@@ -159,25 +157,11 @@
159157
</thead>
160158
<tbody>
161159
<row>
162-
<entry>5.5.0/PECL 3.0.0</entry>
160+
<entry>8.1.0</entry>
163161
<entry>
164162
<para>
165-
An <classname>IntlCalendar</classname> object is allowed for
166-
<parameter>calendar</parameter>.
167-
</para>
168-
<para>
169-
Objects of type <classname>IntlTimeZone</classname> and
170-
<classname>DateTimeZone</classname> are allowed for
171-
<parameter>timezone</parameter>.
172-
</para>
173-
<para>
174-
Invalid timezone identifiers (including empty strings) are no longer
175-
allowed for <parameter>timezone</parameter>.
176-
</para>
177-
<para>
178-
If &null; is given for <parameter>timezone</parameter>, the timezone
179-
identifier given by <function>date_default_timezone_get</function> will
180-
be used instead of ICUʼs default.
163+
Parameters <parameter>dateType</parameter> and
164+
<parameter>timeType</parameter> are now optional.
181165
</para>
182166
</entry>
183167
</row>

0 commit comments

Comments
 (0)