📌  相关文章
📜  将图像上传到firebase时如何获取日期和时间? - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:41.510000             🧑  作者: Mango

代码示例1
You can use ServerValue.TIMESTAMP provided by the Firebase database server and
store it in a new timestamp field in your database along with the url and
description fields for each image. The Firebase servers write the current
timestamp in UTC milliseconds in place of this value when performing writes. 
This value is a 13-digit numeric value.

 mDatabaseRef.child(uploadID).child("timestamp").setValue(ServerValue.TIMESTAMP);