Mongodb iso时间显示不正常

时间:2015-09-14 13:08:02

标签: php mongodb

$start = new MongoDate(strtotime("2010-01-15 00:00:00"));
echo $start;

我正在将当前的php时间转换为mongodb iso时间。 当我回显$ start时,我得到 0.00000000 1263493800。

如何只获得1263493800.我不需要0.00000000部分

0 个答案:

没有答案