TimeOfDay
class TimeOfDay extends Message
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may chose to allow leap seconds. Related
types are [google.type.Date][google.type.Date] and google.protobuf.Timestamp
.
Protobuf type Google\Type\TimeOfDay
Methods
No description
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 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 of hour of day. Must be from 0 to 59.
Minutes of hour of day. Must be from 0 to 59.
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 of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Details
at line 47
__construct()
at line 59
int
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.
Generated from protobuf field int32 hours = 1;
at line 71
setHours(int $var)
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.
Generated from protobuf field int32 hours = 1;
at line 83
int
getMinutes()
Minutes of hour of day. Must be from 0 to 59.
Generated from protobuf field int32 minutes = 2;
at line 94
setMinutes(int $var)
Minutes of hour of day. Must be from 0 to 59.
Generated from protobuf field int32 minutes = 2;
at line 107
int
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.
Generated from protobuf field int32 seconds = 3;
at line 119
setSeconds(int $var)
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.
Generated from protobuf field int32 seconds = 3;
at line 131
int
getNanos()
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Generated from protobuf field int32 nanos = 4;
at line 142
setNanos(int $var)
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Generated from protobuf field int32 nanos = 4;