ServerTimestamp
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.METHOD, ElementType.FIELD])
annotation ServerTimestamp
Annotation used to mark a timestamp field to be populated with a server timestamp. If a POJO being written contains null
for a @ServerTimestamp-annotated field, it will be replaced with a server-generated timestamp.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-02-23 UTC.
[null,null,["Last updated 2023-02-23 UTC."],[],[]]