Date
class Date extends Message
Represents a whole or partial calendar date, e.g. a birthday. The time of day
and time zone are either specified elsewhere or are not significant. The date
is relative to the Proleptic Gregorian Calendar. This can represent:
* A full date, with non-zero year, month and day values
* A month and day value, with a zero year, e.g. an anniversary
* A year on its own, with zero month and day values
* A year and month value, with a zero day, e.g. a credit card expiration date
Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and google.protobuf.Timestamp
.
Generated from protobuf message google.type.Date
Methods
Constructor.
Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
Details
at line 66
__construct(array $data = NULL)
Constructor.
at line 78
int
getYear()
Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
Generated from protobuf field int32 year = 1;
at line 91
$this
setYear(int $var)
Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
Generated from protobuf field int32 year = 1;
at line 106
int
getMonth()
Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
Generated from protobuf field int32 month = 2;
at line 119
$this
setMonth(int $var)
Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
Generated from protobuf field int32 month = 2;
at line 135
int
getDay()
Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
Generated from protobuf field int32 day = 3;
at line 149
$this
setDay(int $var)
Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
Generated from protobuf field int32 day = 3;