# Google Cloud Memorystore for Redis V1 API - Class Google::Type::TimeOfDay (v2.6.0)

2.6.0 (latest) 2.5.1 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.2 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 Reference documentation and code samples for the Google Cloud Memorystore for Redis 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\]\[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.