Viewing File: /opt/alt/tests/alt-php84-pecl-mongodb_1.20.0-2.el8/tests/bson-utcdatetime-todatetime-001.phpt

--TEST--
MongoDB\BSON\UTCDateTime::toDateTime()
--INI--
date.timezone=America/Los_Angeles
--FILE--
<?php

$utcdatetime = new MongoDB\BSON\UTCDateTime(new MongoDB\BSON\Int64('1416445411987'));
$datetime = $utcdatetime->toDateTime();
var_dump(get_class($datetime));
var_dump($datetime->format(DATE_RSS));

?>
===DONE===
<?php exit(0); ?>
--EXPECT--
string(8) "DateTime"
string(31) "Thu, 20 Nov 2014 01:03:31 +0000"
===DONE===
Back to Directory File Manager
<