toTimestamp

public Timestamp toTimestamp()

Obtains this point in time as a Protobuf Timestamp.

The Protobuf Timestamp represents the UTC Epoch time. All the implementations should assemble timestamps regarding that fact.

If this Temporal type lacks precision of the Timestamp, such as seconds, nanoseconds, etc., the smallest possible value of Timestamp should be returned. For example, if this type represents time up to a minute, the value 01-02-2019 09:40 is translated to the timestamp as if it was 01-02-2019 09:40:00.000000000 (with zero seconds and zero nanoseconds). Similarly, if the type only represents a year, then the obtained timestamp points at the 1st of January 00:00:00 of that year.

Return

this is a Timestamp