#include <XspfDateTime.h>
Represents a "dateTime" timestamp without fractional second component.
Definition at line 62 of file XspfDateTime.h.
◆ XspfDateTime() [1/3]
XspfDateTime |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
minutes, |
|
|
int |
seconds, |
|
|
int |
distHours, |
|
|
int |
distMinutes |
|
) |
| |
Creates a new dateTime timestamp. The given parameters must be valid and are not checked for validity inside.
- Parameters
-
year | Year [-9999..+9999] but not zero |
month | Month [1..12] |
day | Day [1..31] |
hour | Hour [0..23] |
minutes | Minutes [0..59] |
seconds | Seconds [0..59] |
distHours | Time shift hours [-14..+14] |
distMinutes | Time shift minutes [-59..+59] |
◆ XspfDateTime() [2/3]
Creates a new dateTime timestamp.
◆ XspfDateTime() [3/3]
Copy constructor.
- Parameters
-
source | Source to copy from |
◆ ~XspfDateTime()
Destroys this dateTime timestamp.
◆ clone()
Clones this dateTime object.
`
- Returns
- Cloned object
◆ extractDateTime()
static bool extractDateTime |
( |
XML_Char const * |
text, |
|
|
XspfDateTime * |
output |
|
) |
| |
|
static |
Extracts a dateTime from text
.
- Parameters
-
text | Text |
output | dateTime storage destination |
- Returns
- Valid dateTime flag
- Since
- 1.0.0rc1
◆ getDay()
Returns the day.
- Returns
- Day
◆ getDistHours()
int getDistHours |
( |
| ) |
const |
Returns the time shift hours.
- Returns
- Time shift hours
◆ getDistMinutes()
int getDistMinutes |
( |
| ) |
const |
Returns the time shift minutes.
- Returns
- Time shift minutes
◆ getHour()
Returns the hour.
- Returns
- Hour
◆ getMinutes()
Returns the minutes.
- Returns
- Minutes
◆ getMonth()
Returns the month.
- Returns
- Month
◆ getSeconds()
Returns the seconds.
- Returns
- Seconds
◆ getYear()
Returns the year.
- Returns
- Year
◆ operator=()
Assignment operator.
- Parameters
-
source | Source to copy from |
◆ setDay()
◆ setDistHours()
void setDistHours |
( |
int |
distHours | ) |
|
Sets the time shift hours.
- Parameters
-
distHours | Time shift hours |
◆ setDistMinutes()
void setDistMinutes |
( |
int |
distMinutes | ) |
|
Sets the time shift minutes.
- Parameters
-
distMinutes | Time shift minutes |
◆ setHour()
Sets the hour.
- Parameters
-
◆ setMinutes()
void setMinutes |
( |
int |
minutes | ) |
|
Sets the minutes.
- Parameters
-
◆ setMonth()
void setMonth |
( |
int |
month | ) |
|
Sets the month.
- Parameters
-
◆ setSeconds()
void setSeconds |
( |
int |
seconds | ) |
|
Sets the seconds.
- Parameters
-
◆ setYear()
Sets the year.
- Parameters
-
The documentation for this class was generated from the following file: