Skip to content

isValidTimestamp

isValidTimestamp(ts): ts is Timestamp

Defined in: timestamp.ts:85

Ensure a timestamp is a valid google.protobuf.Timestamp. The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings. In addition, the nanos value must be between 0 and 999,999,999 inclusive.

Timestamp

ts is Timestamp