classroom
v1
|
#include <date.h>
Public Member Functions | |
Date (const Json::Value &storage) | |
Date (Json::Value *storage) | |
virtual | ~Date () |
const StringPiece | GetTypeName () const |
bool | has_day () const |
void | clear_day () |
int32 | get_day () const |
void | set_day (int32 value) |
bool | has_month () const |
void | clear_month () |
int32 | get_month () const |
void | set_month (int32 value) |
bool | has_year () const |
void | clear_year () |
int32 | get_year () const |
void | set_year (int32 value) |
Static Public Member Functions | |
static Date * | New () |
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:
Related types are google.type.TimeOfDay and google.protobuf.Timestamp
.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'day
' attribute.
|
inline |
Clears the 'month
' attribute.
|
inline |
Clears the 'year
' attribute.
|
inline |
Get the value of the 'day
' attribute.
|
inline |
Get the value of the 'month
' attribute.
|
inline |
Get the value of the 'year
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_classroom_api::Date
|
inline |
Determine if the 'day
' attribute was set.
day
' attribute was set.
|
inline |
Determine if the 'month
' attribute was set.
month
' attribute was set.
|
inline |
Determine if the 'year
' attribute was set.
year
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'day
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'month
' attribute.
Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
[in] | value | The new value. |
|
inline |
Change the 'year
' attribute.
Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
[in] | value | The new value. |