serverTimestamp method

FieldValue serverTimestamp()

Returns a sentinel used with set(), create() or update() to include a server-generated timestamp in the written data.

@return The FieldValue sentinel for use in a call to set(), create() or update().

Implementation

external FieldValue serverTimestamp();