File manager - Edit - /opt/cpanel/ea-php74/root/usr/share/tests/pecl/mongodb/tests/bson/bson-utcdatetime-todatetimeimmutable-002.phpt
Back
--TEST-- MongoDB\BSON\UTCDateTime::toDateTimeImmutable() dumping seconds and microseconds --INI-- date.timezone=UTC --FILE-- <?php $utcdatetime = new MongoDB\BSON\UTCDateTime(new MongoDB\BSON\Int64('1416445411987')); $datetime = $utcdatetime->toDateTimeImmutable(); var_dump(get_class($datetime)); echo $datetime->format('U.u'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- string(17) "DateTimeImmutable" 1416445411.987000 ===DONE===
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings