0
我目前正在使用这样的mongoimport来将许多JSON文件导入到我的数据库中。mongoimport包括进口时间
mongoimport --host localhost --db test --collection <collectionName> --type json --file <filepath>
这工作得很好,不过,我想补充一点,记录的进口时间(所以这个脚本运行在不同的时间我使用cron作业)的时间戳字段。我该如何做到这一点?