【发布时间】:2021-08-28 08:51:11
【问题描述】:
我正在使用 Firebase 分页,因此我需要在 firebase 中查询数据库的当前时间戳?谁能知道如何从系统获取当前时间戳?
FirebaseFirestore.getInstance().collection("news")
.orderBy("timestamp",Query.Direction.DESCENDING)
.startAfter(timestamp) // for here i need current system timestamp..?? how can i??
.limit(4)
.get()
【问题讨论】: