Timestamp
Timestamp: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): Timestamp
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: Timestamp, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { nanos?: number; seconds?: number }): Timestamp
-
Parameters
-
object: { nanos?: number; seconds?: number }
-
Optional nanos?: number
-
Optional seconds?: number
-
toJSON: function
-
Parameters
Returns unknown
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive.