提交 526f08bc 编写于 作者: 雪洛's avatar 雪洛

docs: uniCloud database

上级 e6870dec
...@@ -111,7 +111,7 @@ new db.serverDate() ...@@ -111,7 +111,7 @@ new db.serverDate()
new db.serverDate({ new db.serverDate({
offset: 1000 offset: 1000
}) })
// 在云函数内使用new Date(1000)和上面的用法效果一样 // 在云函数内使用new Date(Date.now() + 1000)和上面的用法效果一样
``` ```
如果需要对日期进行比较操作,可以使用聚合操作符将日期进行转化,比如以下示例查询所有time字段在`2020-02-02`以后的记录 如果需要对日期进行比较操作,可以使用聚合操作符将日期进行转化,比如以下示例查询所有time字段在`2020-02-02`以后的记录
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册