CTR Pia
4.11.3
Game Communication Engine
|
Class that represents time. More...
Public Member Functions | |
DateTime () | |
Instantiates an object with default parameters (default constructor). | |
DateTime (const DateTime &rhs) | |
The copy constructor. More... | |
DateTime (u16 year, u8 month, u8 day, u8 hour, u8 minute, u8 second) | |
Instantiates an object with the specified date and time. More... | |
virtual | ~DateTime () |
The destructor. | |
void | Clear () |
Clears the specified date and time. | |
u8 | GetDay () const |
Gets the specified day. More... | |
u8 | GetHour () const |
Gets the specified hour. More... | |
u8 | GetMinute () const |
Gets the specified minutes. More... | |
u8 | GetMonth () const |
Gets the specified month. More... | |
u8 | GetSecond () const |
Gets the specified seconds. More... | |
u16 | GetYear () const |
Gets the specified year. More... | |
bool | IsRegistered () const |
Gets whether a value has been specified. More... | |
bool | IsValid () const |
Gets whether the specified date and time is correct. More... | |
DateTime & | operator= (const DateTime &rhs) |
Assignment operator. More... | |
void | SetDay (u8 day) |
Specifies the day. More... | |
void | SetHour (u8 hour) |
Specifies the hour. More... | |
void | SetMinute (u8 minute) |
Specifies the minutes. More... | |
void | SetMonth (u8 month) |
Specifies the month. More... | |
void | SetSecond (u8 second) |
Specifies the seconds. More... | |
void | SetYear (u16 year) |
Specifies the year. More... | |
Class that represents time.
|
inline |
The copy constructor.
[in] | rhs | Specifies the DateTime to copy. |
|
inline |
Instantiates an object with the specified date and time.
[in] | year | Year. |
[in] | month | Month. |
[in] | day | Day. |
[in] | hour | Hour. |
[in] | minute | Minutes. |
[in] | second | Seconds. |
|
inline |
Gets the specified day.
|
inline |
Gets the specified hour.
|
inline |
Gets the specified minutes.
|
inline |
Gets the specified month.
|
inline |
Gets the specified seconds.
|
inline |
Gets the specified year.
|
inline |
Gets whether a value has been specified.
true
if a value is specified.
|
inline |
Gets whether the specified date and time is correct.
true
if the specified date and time is correct. Assignment operator.
[in] | rhs | Assignment date and time. |
|
inline |
Specifies the day.
Specify a value in the range from 1 to 31.
[in] | day | Day. |
|
inline |
Specifies the hour.
Specify a value in the range from 0 to 23.
[in] | hour | Hour. |
|
inline |
Specifies the minutes.
Specify a value in the range from 0 to 59.
[in] | minute | Minutes. |
|
inline |
Specifies the month.
Specify a value in the range from 1 to 12.
[in] | month | Month. |
|
inline |
Specifies the seconds.
Specify a value in the range from 0 to 59.
[in] | second | Seconds. |
|
inline |
Specifies the year.
Specify a value in the range from 1 to 9999.
[in] | year | Year. |