我可以比较下面的 2 个 mongodates 吗?在我的测试中,它运行良好。但是 mongodates 是对象,它们将来也会以同样的方式工作吗?
$d1 = new MongoDate(1391671630);
$d2 = new MongoDate(1391671631);
echo ($d1 < $d2); //returns 1 which is correct.
//and i tried all other comparisons (>, ==, >=, <=). Everything works good.