Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
opt
/
php-8.2
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/self/root/opt/php-8.2/share/test/mongodb/tests/bson/bson-utcdatetime-todatetime-002.phpt
--TEST-- MongoDB\BSON\UTCDateTime::toDateTime() dumping seconds and microseconds --INI-- date.timezone=UTC --FILE-- <?php $utcdatetime = new MongoDB\BSON\UTCDateTime(new MongoDB\BSON\Int64('1416445411987')); $datetime = $utcdatetime->toDateTime(); var_dump(get_class($datetime)); echo $datetime->format('U.u'), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- string(8) "DateTime" 1416445411.987000 ===DONE===