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 \ TypeMethods
__construct
Constructor.
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.
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.
var
int
$this
getMinutes
Minutes of hour of day. Must be from 0 to 59.
int
setMinutes
Minutes of hour of day. Must be from 0 to 59.
var
int
$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.
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.
var
int
$this
getNanos
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
int
setNanos
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
var
int
$this