#include <datetime.h>
Definition at line 24 of file datetime.h.
| Xpace::Date::Date |
( |
int |
year, |
|
|
uint |
month, |
|
|
uint |
day |
|
) |
| |
- Parameters
-
| year | the year [-4194304..4194303] |
| month | the month [1..12] |
| day | the day [1..31] |
| Xpace::Date::Date |
( |
const String & |
str, |
|
|
const String & |
format |
|
) |
| |
- Parameters
-
| the | date in string form |
| format | the format of the date e.g. "yyyy-MM-dd" |
| Xpace::Date::Date |
( |
int32 |
v | ) |
|
|
inline |
| void Xpace::Date::set |
( |
int |
year, |
|
|
uint |
month, |
|
|
uint |
day |
|
) |
| |
- Parameters
-
| year | the year [-4194304..4194303] |
| month | the month [1..12] |
| day | the day [1..31] |
| int32 Xpace::Date::toInt |
( |
| ) |
const |
|
inline |
| int Xpace::Date::getYear |
( |
| ) |
const |
| uint Xpace::Date::getMonth |
( |
| ) |
const |
| uint Xpace::Date::getDay |
( |
| ) |
const |
| void Xpace::Date::setYMD |
( |
int |
ymd | ) |
|
| int Xpace::Date::getYMD |
( |
| ) |
const |
- Returns
- date in syyyymmdd format
| void Xpace::Date::toString |
( |
String16 * |
buf, |
|
|
bool |
sep = false |
|
) |
| const |
- Parameters
-
| sep | if true, leave space for separators among yyyy mm dd NB buffer's length is NOT checked |
- Return values
-
| buf | the buffer into which to store the date (and its length) |
- Parameters
-
| format | the format of the date e.g. "yyyy-MM-dd" |
| Date& Xpace::Date::operator+= |
( |
int |
days | ) |
|
increment date @ param days increment by this many days
The documentation for this class was generated from the following file: