reference/datetime/functions/date.xml
7f385d3239d0df073e2208fb0c3c243ef13553bb
...
...
@@ -38,6 +38,15 @@
38
38
<para>
39
39
Format accepted by <methodname>DateTimeInterface::format</methodname>.
40
40
</para>
41
+
<note>
42
+
<simpara>
43
+
<function>date</function> will always generate
44
+
<literal>000000</literal> as microseconds since it takes an <type>int</type>
45
+
parameter, whereas <methodname>DateTime::format</methodname> does
46
+
support microseconds if <classname>DateTime</classname> was
47
+
created with microseconds.
48
+
</simpara>
49
+
</note>
41
50
</listitem>
42
51
</varlistentry>
43
52

...
...
@@ -49,9 +58,7 @@
49
58
<refsect1 role="returnvalues">
50
59
&reftitle.returnvalues;
51
60
<para>
52
-
Returns a formatted date string. If a non-numeric value is used for
53
-
<parameter>timestamp</parameter>, &false; is returned and an
54
-
<constant>E_WARNING</constant> level error is emitted.
61
+
Returns a formatted date string.
55
62
</para>
56
63
</refsect1>
57
64

58
65