#include <XspfDateTime.h>
List of all members.
Detailed Description
Represents a "dateTime" timestamp without fractional second component.
Definition at line 62 of file XspfDateTime.h.
Constructor & Destructor Documentation
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] |
Creates a new dateTime timestamp.
Copy constructor.
- Parameters:
-
| source | Source to copy from |
Destroys this dateTime timestamp.
Member Function Documentation
Clones this dateTime object.
`
- Returns:
- Cloned object
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
Returns the day.
- Returns:
- Day
int getDistHours |
( |
|
) |
const |
Returns the time shift hours.
- Returns:
- Time shift hours
int getDistMinutes |
( |
|
) |
const |
Returns the time shift minutes.
- Returns:
- Time shift minutes
Returns the hour.
- Returns:
- Hour
Returns the minutes.
- Returns:
- Minutes
Returns the month.
- Returns:
- Month
Returns the seconds.
- Returns:
- Seconds
Returns the year.
- Returns:
- Year
Assignment operator.
- Parameters:
-
| source | Source to copy from |
Sets the day.
- Parameters:
-
void setDistHours |
( |
int |
distHours |
) |
|
Sets the time shift hours.
- Parameters:
-
| distHours | Time shift hours |
void setDistMinutes |
( |
int |
distMinutes |
) |
|
Sets the time shift minutes.
- Parameters:
-
| distMinutes | Time shift minutes |
void setHour |
( |
int |
hour |
) |
|
Sets the hour.
- Parameters:
-
void setMinutes |
( |
int |
minutes |
) |
|
Sets the minutes.
- Parameters:
-
void setMonth |
( |
int |
month |
) |
|
Sets the month.
- Parameters:
-
void setSeconds |
( |
int |
seconds |
) |
|
Sets the seconds.
- Parameters:
-
void setYear |
( |
int |
year |
) |
|
Sets the year.
- Parameters:
-
The documentation for this class was generated from the following file: