# Database Center V1BETA API - Class Google::Type::TimeOfDay (v0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Database Center V1BETA 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-database_center-v1beta/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 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.