Google API Common Protos Client - Class TimeOfDay (4.8.2)

Reference documentation and code samples for the Google API Common Protos Client class 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 and google.protobuf.Timestamp.

Generated from protobuf message google.type.TimeOfDay

Namespace

Google \ Type

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ hours int

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 int

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

↳ seconds int

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.

↳ nanos int

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

getHours

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
Type Description
int

setHours

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.

Parameter
Name Description
var int
Returns
Type Description
$this

getMinutes

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

Returns
Type Description
int

setMinutes

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

Parameter
Name Description
var int
Returns
Type Description
$this

getSeconds

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
Type Description
int

setSeconds

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.

Parameter
Name Description
var int
Returns
Type Description
$this

getNanos

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

Returns
Type Description
int

setNanos

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

Parameter
Name Description
var int
Returns
Type Description
$this