Class: Google::Apis::AndroidpublisherV3::Timestamp
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::Timestamp
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidpublisher_v3/classes.rb,
generated/google/apis/androidpublisher_v3/representations.rb,
generated/google/apis/androidpublisher_v3/representations.rb
Overview
A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970.
Instance Attribute Summary collapse
-
#nanos ⇒ Fixnum
Non-negative fractions of a second at nanosecond resolution.
-
#seconds ⇒ Fixnum
Represents seconds of UTC time since Unix epoch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Timestamp
constructor
A new instance of Timestamp.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Timestamp
Returns a new instance of Timestamp.
1858 1859 1860 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1858 def initialize(**args) update!(**args) end |
Instance Attribute Details
#nanos ⇒ Fixnum
Non-negative fractions of a second at nanosecond resolution. Must be from 0 to
999,999,999 inclusive.
Corresponds to the JSON property nanos
1851 1852 1853 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1851 def nanos @nanos end |
#seconds ⇒ Fixnum
Represents seconds of UTC time since Unix epoch.
Corresponds to the JSON property seconds
1856 1857 1858 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1856 def seconds @seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1863 1864 1865 1866 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1863 def update!(**args) @nanos = args[:nanos] if args.key?(:nanos) @seconds = args[:seconds] if args.key?(:seconds) end |