GMTSTimestamp 類別參考資料

GMTSTimestamp 類別參考資料

總覽

代表時間戳記的物件。

沿用 GMTCImmutableData

公開成員函式

(instancetype)- initWithSeconds:nanos:
 使用指定的「seconds」和「nanos」將物件例項化。

資源

int64_t
 代表自 Unix 紀元 1970-01-01T00:00:00Z 以來世界標準時間的秒數。
int32_tnanos
 以奈秒解析度呈現一秒的非負分數。

成員函式說明文件

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

使用指定的「seconds」和「nanos」將物件例項化。


資源說明文件

- (int64_t) [read, assign]

代表自 Unix 紀元 1970-01-01T00:00:00Z 以來世界標準時間的秒數。

必須介於 0001-01-01T00:00:00Z 至 9999-12-31T23:59:59Z (含) 之間。

- (int32_t) nanos [read, assign]

以奈秒解析度呈現一秒的非負分數。

含有分數的負秒數值仍須有非負數的 nanos 值,且會隨著時間的推移。必須介於 0 到 999,999,999 之間 (含首尾)。