class Google::Apis::OsconfigV1beta::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`.

Attributes

hours[RW]

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. Corresponds to the JSON property `hours` @return [Fixnum]

minutes[RW]

Minutes of hour of day. Must be from 0 to 59. Corresponds to the JSON property `minutes` @return [Fixnum]

nanos[RW]

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. Corresponds to the JSON property `nanos` @return [Fixnum]

seconds[RW]

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. Corresponds to the JSON property `seconds` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 2098
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 2103
def update!(**args)
  @hours = args[:hours] if args.key?(:hours)
  @minutes = args[:minutes] if args.key?(:minutes)
  @nanos = args[:nanos] if args.key?(:nanos)
  @seconds = args[:seconds] if args.key?(:seconds)
end