Class: Google::Type::TimeOfDay

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/type/timeofday.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#hours::Integer

Returns 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.



40
41
42
43
# File 'proto_docs/google/type/timeofday.rb', line 40

class TimeOfDay
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#minutes::Integer

Returns Minutes of hour of day. Must be from 0 to 59.

Returns:

  • (::Integer)

    Minutes of hour of day. Must be from 0 to 59.



40
41
42
43
# File 'proto_docs/google/type/timeofday.rb', line 40

class TimeOfDay
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#nanos::Integer

Returns 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.



40
41
42
43
# File 'proto_docs/google/type/timeofday.rb', line 40

class TimeOfDay
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#seconds::Integer

Returns 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.



40
41
42
43
# File 'proto_docs/google/type/timeofday.rb', line 40

class TimeOfDay
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end