Skip to content

Commit c856472

Browse files
committed
UTCDateTime supports Int64, deprecates string and float
https://jira.mongodb.org/browse/PHPC-2443 https://jira.mongodb.org/browse/PHPC-2458
1 parent 8afee82 commit c856472

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

reference/mongodb/bson/utcdatetime/construct.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<modifier>final</modifier> <modifier>public</modifier> <methodname>MongoDB\BSON\UTCDateTime::__construct</methodname>
14-
<methodparam choice="opt"><type class="union"><type>int</type><type>float</type><type>string</type><type>DateTimeInterface</type><type>null</type></type><parameter>milliseconds</parameter><initializer>&null;</initializer></methodparam>
14+
<methodparam choice="opt"><type class="union"><type>int</type><type>float</type><type>string</type><type>MongoDB\BSON\Int64</type><type>DateTimeInterface</type><type>null</type></type><parameter>milliseconds</parameter><initializer>&null;</initializer></methodparam>
1515
</methodsynopsis>
1616
</refsect1>
1717

@@ -25,7 +25,7 @@
2525
Number of milliseconds since the Unix epoch (Jan 1, 1970). Negative values
2626
represent dates before 1970. This value may be provided as a 64-bit
2727
<type>int</type>. For compatibility on 32-bit systems, this parameter
28-
may also be provided as a <type>float</type> or <type>string</type>.
28+
may also be provided as a <classname>MongoDB\BSON\Int64</classname>.
2929
</para>
3030
<para>
3131
If the argument is a <classname>DateTimeInterface</classname>, the number
@@ -58,6 +58,17 @@
5858
</row>
5959
</thead>
6060
<tbody>
61+
<row>
62+
<entry>PECL mongodb 1.20.0</entry>
63+
<entry>
64+
<para>
65+
The <parameter>milliseconds</parameter> argument now accepts a
66+
<classname>MongoDB\BSON\Int64</classname> object (for compatibility on
67+
32-bit platforms). Specifying a <type>string</type> or
68+
<type>float</type> is deprecated.
69+
</para>
70+
</entry>
71+
</row>
6172
<row>
6273
<entry>PECL mongodb 1.2.0</entry>
6374
<entry>

0 commit comments

Comments
 (0)