GMTSTimestamp Class Reference
Stay organized with collections
Save and categorize content based on your preferences.
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
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-30 UTC."],[[["The `GMTSTimestamp` class represents a timestamp and inherits from `GMTCImmutableData`."],["It can be instantiated using seconds and nanoseconds since the Unix epoch."],["`GMTSTimestamp` stores the timestamp using two properties: `seconds` and `nanos`."],["`seconds` represents UTC time since Unix epoch (1970-01-01T00:00:00Z), while `nanos` provides nanosecond resolution."],["Both `seconds` and `nanos` have specific allowed ranges for valid timestamps."]]],[]]