#include <date.h>
Public Member Functions | |
| Date () | |
| The default constructor initializes to the imaginary date 0000-00-00. | |
| Date (const std::string &isoString) | |
| This constructor sets the date from ISO string "yyyy-mm-dd". | |
| Date (size_t year, size_t month, size_t day) | |
| This constructor sets the date explicitly. | |
| Date (const Date &source) | |
| The copy constructor deep copies its argument. | |
| ~Date () | |
| Destructor. | |
| size_t | day () const |
| The function returns the day. | |
| size_t | month () const |
| The function returns the month. | |
| void | setDay (size_t day) |
| This function explicitly sets the day. | |
| void | setISODate (const std::string &isoString) |
| Set from an ISO date string. | |
| void | setMonth (size_t month) |
| This function explicitly sets the month. | |
| void | setYear (size_t year) |
| This function explicitly sets the year. | |
| size_t | year () const |
| The function returns the year. | |
Note that the format is yyyy-mm-dd.
Definition at line 26 of file date.h.
| dlr::utilities::Date::Date | ( | ) | [inline] |
| dlr::utilities::Date::Date | ( | const std::string & | isoString | ) | [inline] |
This constructor sets the date from ISO string "yyyy-mm-dd".
| isoString | This argument specifies the date. |
Definition at line 41 of file date.h.
References setISODate().
| dlr::utilities::Date::Date | ( | size_t | year, | |
| size_t | month, | |||
| size_t | day | |||
| ) | [inline] |
| dlr::utilities::Date::Date | ( | const Date & | source | ) | [inline] |
| size_t dlr::utilities::Date::day | ( | ) | const [inline] |
The function returns the day.
Definition at line 79 of file date.h.
Referenced by dlr::utilities::operator<(), dlr::utilities::operator<<(), and dlr::utilities::operator==().
| size_t dlr::utilities::Date::month | ( | ) | const [inline] |
The function returns the month.
Definition at line 88 of file date.h.
Referenced by dlr::utilities::operator<(), dlr::utilities::operator<<(), and dlr::utilities::operator==().
| void dlr::utilities::Date::setDay | ( | size_t | day | ) | [inline] |
| void dlr::utilities::Date::setISODate | ( | const std::string & | isoString | ) |
Set from an ISO date string.
| isoString | This argument specifies the date. |
Definition at line 27 of file date.cpp.
References DLR_THROW, and dlr::utilities::replaceString().
Referenced by Date().
| void dlr::utilities::Date::setMonth | ( | size_t | month | ) | [inline] |
| void dlr::utilities::Date::setYear | ( | size_t | year | ) | [inline] |
| size_t dlr::utilities::Date::year | ( | ) | const [inline] |
The function returns the year.
Definition at line 133 of file date.h.
Referenced by dlr::utilities::operator<(), dlr::utilities::operator<<(), and dlr::utilities::operator==().
1.5.2