【发布时间】:2017-07-27 11:58:57
【问题描述】:
我正在使用 php_mongodb-1.2.2-7.0-nts-vc14-x64 驱动程序运行 PHP 7。
$ar = new \MongoDB\BSON\UTCDateTime(strtotime('2017-07-27 06:17:25.123000') * 1000);
上述语句的输出为:
ISODate("2017-07-27T06:17:25.000+0000")
但我也需要毫秒:
ISODate("2017-07-27T06:17:25.123+0000")
由于我是新手,我似乎无法弄清楚如何解决这个问题。
【问题讨论】: