Skip to content

assertValidTimestamp

assertValidTimestamp(ts): asserts ts is Timestamp

Defined in: timestamp.ts:63

Assert that a value is a google.protobuf.Timestamp message. This function will throw an error if the value is not a valid Timestamp message. The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. In addition, the nanos value must be between 0 and 999,999,999 inclusive.

Timestamp

asserts ts is Timestamp