#include <datetime.h>
Definition at line 222 of file datetime.h.
| Xpace::DateTime::DateTime |
( |
const Date & |
date = Date(), |
|
|
const Time & |
time = Time() |
|
) |
| |
@ param date the date @ param time the time
| Xpace::DateTime::DateTime |
( |
const String & |
str, |
|
|
const String & |
format |
|
) |
| |
- Parameters
-
| the | date-time in string form |
| format | the format of the date-time e.g. "yyyy-MM-dd hh:mm:ss" |
| Xpace::DateTime::DateTime |
( |
int64 |
val, |
|
|
uint |
precision = 0 |
|
) |
| |
set the date-time from an int64
- Parameters
-
| val | the int64 |
| precision | the desired precision |
| void Xpace::DateTime::set |
( |
const Date & |
date, |
|
|
const Time & |
time |
|
) |
| |
@ param date the date @ param time the time
| Date Xpace::DateTime::getDate |
( |
| ) |
const |
|
inline |
| Time Xpace::DateTime::getTime |
( |
| ) |
const |
|
inline |
| int64 Xpace::DateTime::toInt |
( |
uint |
precision = 0 | ) |
const |
- Parameters
-
| the | desired precision 0 = seconds, 1 = tenths, 2 = hundredths, 3 = milliseconds |
- Returns
- the date-time as an int64
| DateTime& Xpace::DateTime::operator+= |
( |
int |
delta | ) |
|
increment/decrement the date-time
- Parameters
-
| increment | the date-time by this many units. if precision == 0, unit = second; if precision = 1, unit = tenths; etc. |
| String Xpace::DateTime::toString |
( |
const String & |
format | ) |
const |
- Parameters
-
| format | the format of the date-time e.g. "yyyy-MM-dd hh:mm:ss" |
The documentation for this class was generated from the following file: