(mongodb >=1.0.0)
MongoDB\BSON\UTCDateTime::toDateTime — Returns the DateTime representation of this UTCDateTime
此函数没有参数。
Returns the DateTime representation of this UTCDateTime.
Example #1 MongoDB\BSON\UTCDatetime::toDateTime() example
<?php
$utcdatetime = new MongoDB\BSON\UTCDateTime(1416445411987);
$datetime = $utcdatetime->toDateTime();
var_dump($datetime->format(DATE_RSS));
?>
以上例程的输出类似于:
string(31) "Thu, 20 Nov 2014 01:03:31 +0000"