reference/datetime/functions/gmdate.xml
5c951013ca04161992efed8b86fb40f55669958e
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>gmdate</methodname>
13
13
<methodparam><type>string</type><parameter>format</parameter></methodparam>
14
-
<methodparam choice="opt"><type>int</type><parameter>timestamp</parameter><initializer>time()</initializer></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>timestamp</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Identical to the <function>date</function> function except that
...
...
@@ -42,9 +42,7 @@
42
42
<refsect1 role="returnvalues">
43
43
&reftitle.returnvalues;
44
44
<para>
45
-
Returns a formatted date string. If a non-numeric value is used for
46
-
<parameter>timestamp</parameter>, &false; is returned and an
47
-
<constant>E_WARNING</constant> level error is emitted.
45
+
Returns a formatted date string.
48
46
</para>
49
47
</refsect1>
50
48

...
...
@@ -61,21 +59,9 @@
61
59
</thead>
62
60
<tbody>
63
61
<row>
64
-
<entry>5.1.0</entry>
62
+
<entry>8.0.0</entry>
65
63
<entry>
66
-
The valid range of a timestamp is typically from Fri, 13 Dec
67
-
1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are
68
-
the dates that correspond to the minimum and maximum values for
69
-
a 32-bit signed integer). However, before PHP 5.1.0 this range was limited
70
-
from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows).
71
-
</entry>
72
-
</row>
73
-
<row>
74
-
<entry>5.1.1</entry>
75
-
<entry>
76
-
There are useful <link linkend="datetime.constants">constants</link>
77
-
of standard date/time formats that can be used to specify the
78
-
<parameter>format</parameter> parameter.
64
+
<parameter>timestamp</parameter> is nullable now.
79
65
</entry>
80
66
</row>
81
67
</tbody>
...
...
@@ -109,15 +95,16 @@ echo gmdate("M d Y H:i:s", mktime(0, 0, 0, 1, 1, 1998));
109
95
&reftitle.seealso;
110
96
<para>
111
97
<simplelist>
98
+
<member><methodname>DateTimeImmutable::__construct</methodname></member>
99
+
<member><methodname>DateTimeInterface::format</methodname></member>
112
100
<member><function>date</function></member>
113
101
<member><function>mktime</function></member>
114
102
<member><function>gmmktime</function></member>
115
-
<member><function>strftime</function></member>
103
+
<member><methodname>IntlDateFormatter::format</methodname></member>
116
104
</simplelist>
117
105
</para>
118
106
</refsect1>
119
107
</refentry>
120
-

121
108
<!-- Keep this comment at the end of the file
122
109
Local variables:
123
110
mode: sgml
124
111