classroom
v1
|
#include <time_of_day.h>
Public Member Functions | |
TimeOfDay (const Json::Value &storage) | |
TimeOfDay (Json::Value *storage) | |
virtual | ~TimeOfDay () |
const StringPiece | GetTypeName () const |
bool | has_hours () const |
void | clear_hours () |
int32 | get_hours () const |
void | set_hours (int32 value) |
bool | has_minutes () const |
void | clear_minutes () |
int32 | get_minutes () const |
void | set_minutes (int32 value) |
bool | has_nanos () const |
void | clear_nanos () |
int32 | get_nanos () const |
void | set_nanos (int32 value) |
bool | has_seconds () const |
void | clear_seconds () |
int32 | get_seconds () const |
void | set_seconds (int32 value) |
Static Public Member Functions | |
static TimeOfDay * | New () |
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
.
|
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 'hours
' attribute.
|
inline |
Clears the 'minutes
' attribute.
|
inline |
Clears the 'nanos
' attribute.
|
inline |
Clears the 'seconds
' attribute.
|
inline |
Get the value of the 'hours
' attribute.
|
inline |
Get the value of the 'minutes
' attribute.
|
inline |
Get the value of the 'nanos
' attribute.
|
inline |
Get the value of the 'seconds
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'hours
' attribute was set.
hours
' attribute was set.
|
inline |
Determine if the 'minutes
' attribute was set.
minutes
' attribute was set.
|
inline |
Determine if the 'nanos
' attribute was set.
nanos
' attribute was set.
|
inline |
Determine if the 'seconds
' attribute was set.
seconds
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'hours
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'minutes
' attribute.
Minutes of hour of day. Must be from 0 to 59.
[in] | value | The new value. |
|
inline |
Change the 'nanos
' attribute.
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
[in] | value | The new value. |
|
inline |
Change the 'seconds
' attribute.
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.
[in] | value | The new value. |