GMTSTimestamp Class Reference

GMTSTimestamp Class Reference

Overview

Object representing a timestamp.

Inherits GMTCImmutableData.

Public Member Functions

(instancetype) - initWithSeconds:nanos:
 Instantiates the object with the specified `seconds` and `nanos'.

Properties

int64_t seconds
 Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
int32_t nanos
 Non-negative fractions of a second at nanosecond resolution.

Member Function Documentation

- (instancetype) initWithSeconds: (int64_t)  seconds
nanos: (int32_t)  nanos 

Instantiates the object with the specified `seconds` and `nanos'.


Property Documentation

- (int64_t) seconds [read, assign]

Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.

Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.

- (int32_t) nanos [read, assign]

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.