DashBoard : https://cloud.mongodb.com/v2/619cd96f435b7205c0014abc#clusters
There are three ways to express time:
- 时间戳 timestamp
- UTCDateTime
- 日期字符串
Belows are some methods about time:
Date():'Wed Nov 24 2021 21:18:04 GMT+0800 (China Standard Time)'Beijing Time, the type is stringnew Date():2021-11-24T13:18:25.287ZGMT Time, the type is objectISODate():2021-11-24T13:18:25.287ZGMT Time, the type is object
- switch db:
use myNewDB - find all
documentsfromcollections:db.observations.find({}) - find some
documentswithequalconditions:db.observations.find({"extra":"favorite"}) - find some
documentswithgreate or lessconditions:db.observations.find({"observationTimestamp":{$gt:1637758459}})