how to write a query get Firestore current server time using firebase java admin sdk
问题 I want to write a query to get a list of document which was saved in the past 24 hours. When the document was created, I add a "last updated" value using FieldValue.serverTimestamp() . Now my query would be like: Date pastDay = (getFireStoreServerTime) - (24hours) Query query = collectionRef.orderBy("lastUpdated", Query.Direction.DESCENDING).where("last updated" > pastDay); However, I wasn't able to find the API in java admin SDK to get the server time. Is this supported in Firebase Admin SDK