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 a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal 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 a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Returns
- (::Integer) — Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal 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 an hour. Must be greater than or equal to 0 and less than or equal to 59.
#minutes=
def minutes=(value) -> ::Integer
Parameter
- value (::Integer) — Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
Returns
- (::Integer) — Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
#nanos
def nanos() -> ::Integer
Returns
- (::Integer) — Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
#nanos=
def nanos=(value) -> ::Integer
Parameter
- value (::Integer) — Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
Returns
- (::Integer) — Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
#seconds
def seconds() -> ::Integer
Returns
- (::Integer) — Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
#seconds=
def seconds=(value) -> ::Integer
Parameter
- value (::Integer) — Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
Returns
- (::Integer) — Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.