# Google Cloud Deploy V1 API - Class Google::Type::TimeOfDay (v2.5.0)

2.5.0 (latest) 2.4.1 2.3.0 2.2.0 2.1.1 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.0 1.0.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Deploy 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest/Google-Type-Date "Google::Type::Date (class)") 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 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.

### #hours=

    def hours=(value) -> ::Integer

**Parameter**

- **value** (::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.
**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.

### #minutes

    def minutes() -> ::Integer

**Returns**

- (::Integer) --- Minutes of hour of day. Must be from 0 to 59.

### #minutes=

    def minutes=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Minutes of hour of day. Must be from 0 to 59.
**Returns**

- (::Integer) --- Minutes of hour of day. Must be from 0 to 59.

### #nanos

    def nanos() -> ::Integer

**Returns**

- (::Integer) --- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

### #nanos=

    def nanos=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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.

### #seconds

    def seconds() -> ::Integer

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

### #seconds=

    def seconds=(value) -> ::Integer

**Parameter**

- **value** (::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.
**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.