Mongoexport:将数字日期转换为ISODate

时间:2015-12-07 16:06:26

标签: mongodb mongoexport

对于以下转储:

mongoexport --db AegroDB -f "realizationStartDate" -c T_OBSERVATION --query '{"type":"PEST_INCIDENCE",'realizationStartDate':{$ne:null}}'

我有这些结果:

{"_id":{"$oid":"55fc25ece4b05dccd6450478"},"realizationStartDate":{"$numberLong":"1443150000000"}}
{"_id":{"$oid":"565d9466e4b07bd3e9840e2a"},"realizationStartDate":{"$numberLong":"1448935200000"}}
{"_id":{"$oid":"565db72ce4b099bace4cb9de"},"realizationStartDate":{"$numberLong":"1448848800000"}}
{"_id":{"$oid":"565db9aee4b01d782a3bc5af"},"realizationStartDate":{"$numberLong":"1449108000000"}}
{"_id":{"$oid":"565dc17ae4b077cd2daa1ad2"},"realizationStartDate":{"$numberLong":"1449367200000"}}

如何在转储中输出realizationStartDate字段作为ISODate?我使用的是3.0.7。

由于

0 个答案:

没有答案