The Date class provides Date handling based on the boost::gregorian::date.
More...
#include <date.h>
|
|
class | boost::serialization::access |
| |
|
bool | operator== (const Date &, const Date &) |
| |
The Date class provides Date handling based on the boost::gregorian::date.
| TournamentRunner::Date::Date |
( |
| ) |
|
|
default |
Default empty Date constructor.
Sets the date to the current date
| TournamentRunner::Date::Date |
( |
const std::string & |
date_as_string | ) |
|
|
explicit |
Constructor from date as string.
- Parameters
-
| date_as_string | Date as string |
| TournamentRunner::Date::Date |
( |
boost::gregorian::date |
date | ) |
|
|
explicit |
Constructor from boost gregorian date.
- Parameters
-
| date | Date as boost gregorian date |
| int32_t TournamentRunner::Date::day |
( |
| ) |
const |
Return the day of month.
- Returns
- The day of month as integer
| bool TournamentRunner::Date::is_valid |
( |
| ) |
const |
Return true if the date is valid.
- Return values
-
| true | Date is a valid date |
| false | Date is not a valid date |
| int32_t TournamentRunner::Date::month |
( |
| ) |
const |
Return the month.
- Returns
- The month as integer
| std::string TournamentRunner::Date::to_iso_extended_string |
( |
| ) |
const |
Return date as extended iso string.
- Returns
- Date as iso string
| int32_t TournamentRunner::Date::year |
( |
| ) |
const |
Return the year.
- Returns
- The year as integer
The documentation for this class was generated from the following files: