创建文档时是否有任何获取文档时间戳的方法 [英] Are there any ways to get timestamp of document when created

查看:34
本文介绍了创建文档时是否有任何获取文档时间戳的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建消息传递应用程序时,我忘记在文档中添加时间戳.在创建Firestore文档时,是否可以获取时间戳?

When I created the messaging app, I forgot to add timestamp to the document. Is there a way to get the timestamp when the firestore document is created?

推荐答案

文档没有这样的元数据.创建文档后,如果最初没有向其添加创建时间戳,则事后将无法找到它.

Documents don't have any sort of metadata like this. After you create the document, if you didn't originally add a creation timestamp to it, you won't be able to find it after the fact.

这篇关于创建文档时是否有任何获取文档时间戳的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆