Documentation

TimeOfDay extends Message
in package

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][google.type.Date] and `google.protobuf.Timestamp`.

Generated from protobuf message google.type.TimeOfDay

Table of Contents

Properties

$hours  : mixed
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  : mixed
Minutes of hour of day. Must be from 0 to 59.
$nanos  : mixed
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
$seconds  : mixed
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.

Methods

__construct()  : mixed
Constructor.
getHours()  : 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.
getMinutes()  : int
Minutes of hour of day. Must be from 0 to 59.
getNanos()  : int
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
getSeconds()  : 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.
setHours()  : $this
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.
setMinutes()  : $this
Minutes of hour of day. Must be from 0 to 59.
setNanos()  : $this
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
setSeconds()  : $this
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.

Properties

$hours

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.

protected mixed $hours = 0

Generated from protobuf field int32 hours = 1 [json_name = "hours"];

$minutes

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

protected mixed $minutes = 0

Generated from protobuf field int32 minutes = 2 [json_name = "minutes"];

$nanos

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

protected mixed $nanos = 0

Generated from protobuf field int32 nanos = 4 [json_name = "nanos"];

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

protected mixed $seconds = 0

Generated from protobuf field int32 seconds = 3 [json_name = "seconds"];

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type int $hours
      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.
@type int $minutes
      Minutes of hour of day. Must be from 0 to 59.
@type int $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.
@type int $nanos
      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.

public getHours() : int

Generated from protobuf field int32 hours = 1 [json_name = "hours"];

Return values
int

getMinutes()

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

public getMinutes() : int

Generated from protobuf field int32 minutes = 2 [json_name = "minutes"];

Return values
int

getNanos()

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

public getNanos() : int

Generated from protobuf field int32 nanos = 4 [json_name = "nanos"];

Return values
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.

public getSeconds() : int

Generated from protobuf field int32 seconds = 3 [json_name = "seconds"];

Return values
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.

public setHours(int $var) : $this

Generated from protobuf field int32 hours = 1 [json_name = "hours"];

Parameters
$var : int
Return values
$this

setMinutes()

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

public setMinutes(int $var) : $this

Generated from protobuf field int32 minutes = 2 [json_name = "minutes"];

Parameters
$var : int
Return values
$this

setNanos()

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

public setNanos(int $var) : $this

Generated from protobuf field int32 nanos = 4 [json_name = "nanos"];

Parameters
$var : int
Return values
$this

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.

public setSeconds(int $var) : $this

Generated from protobuf field int32 seconds = 3 [json_name = "seconds"];

Parameters
$var : int
Return values
$this

        
On this page

Search results