Class: Google::Type::TimeOfDay

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb,
lib/google/cloud/dlp/v2beta1/doc/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 chose to allow leap seconds. Related types are Date and +google.protobuf.Timestamp+.

Instance Attribute Summary collapse

Instance Attribute Details

#hoursInteger

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.



34
# File 'lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb', line 34

class TimeOfDay; end

#minutesInteger

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.



34
# File 'lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb', line 34

class TimeOfDay; end

#nanosInteger

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.



34
# File 'lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb', line 34

class TimeOfDay; end

#secondsInteger

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.



34
# File 'lib/google/cloud/dlp/v2/doc/google/type/timeofday.rb', line 34

class TimeOfDay; end