how to use FieldValue.serverTimestamp() to custom model class in android

前端 未结 4 1969
北海茫月
北海茫月 2021-01-18 07:04

I am using Firestore as a database and now i want to store server timestamp when user register.

from the Firestore doc

  Map up         


        
4条回答
  •  抹茶落季
    2021-01-18 07:41

    If you only want a timestamp and not an accurate time event then you can use

    System.currentTimeMillis();
    

提交回复
热议问题