Reference documentation and code samples for the Cloud OS Config V1 API class Google::Type::TimeOfDay.
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and
google.protobuf.Timestamp
.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#hours
def hours() -> ::Integer
Returns
- (::Integer) — Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
#hours=
def hours=(value) -> ::Integer
Parameter
- value (::Integer) — Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Returns
- (::Integer) — Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
#minutes
def minutes() -> ::Integer
Returns
- (::Integer) — Minutes of hour of day. Must be from 0 to 59.
#minutes=
def minutes=(value) -> ::Integer
Parameter
- value (::Integer) — Minutes of hour of day. Must be from 0 to 59.
Returns
- (::Integer) — Minutes of hour of day. Must be from 0 to 59.
#nanos
def nanos() -> ::Integer
Returns
- (::Integer) — Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
#nanos=
def nanos=(value) -> ::Integer
Parameter
- value (::Integer) — Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Returns
- (::Integer) — Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
#seconds
def seconds() -> ::Integer
Returns
- (::Integer) — Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
#seconds=
def seconds=(value) -> ::Integer
Parameter
- value (::Integer) — Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
Returns
- (::Integer) — Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.