“Timestamp Firebase” Respostas de código

Timestamp Firebase

import firebase from 'firebase';

{
	timestamp: firebase.firestore.FieldValue.serverTimestamp(),
}
Wicked Walrus

Timestamp Firebase

// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.

long millis = System.currentTimeMillis();

Timestamp timestamp = 
  Timestamp.newBuilder()
           .setSeconds(millis / 1000)
           .setNanos((int)(millis % 1000 * 1_000_000))
           .build();
Merlin4 (ranken)

Respostas semelhantes a “Timestamp Firebase”

Perguntas semelhantes a “Timestamp Firebase”

Procure respostas de código populares por idioma

Procurar outros idiomas de código