|
E-MailRelay
|
A day-month-year date class. More...
#include <gdate.h>
Classes | |
| class | LocalTime |
| An overload discriminator class for Date constructors. More... | |
Public Member Functions | |
| Date () | |
| Default constructor for the current date in the UTC timezone. More... | |
| Date (const LocalTime &) | |
| Constructor for the current date in the local timezone. More... | |
| Date (const BrokenDownTime &tm) | |
| Constructor for the specified date. More... | |
| Date (SystemTime t) | |
| Constructor for the date in the UTC timezone as at the given epoch time. More... | |
| Date (SystemTime t, const LocalTime &) | |
| Constructor for the date in the local timezone as at the given epoch time. More... | |
| Date (int year, Month month, int day_of_month) | |
| Constructor for the specified date. More... | |
| Date (int year, Month month, int day_of_month, std::nothrow_t) noexcept | |
| Constructor for the specified date. More... | |
| std::string | str (Format format=Format::yyyy_mm_dd_slash) const |
| Returns a string representation of the date. More... | |
| Weekday | weekday () const |
| Returns the day of the week. More... | |
| std::string | weekdayName (bool brief=false) const |
| Returns an english string representation of the day of the week. More... | |
| int | monthday () const |
| Returns the day of the month. More... | |
| std::string | dd () const |
| Returns the day of the month as a two-digit decimal string. More... | |
| Month | month () const |
| Returns the month. More... | |
| std::string | monthName (bool brief=false) const |
| Returns the month as a string (in english). More... | |
| std::string | mm () const |
| Returns the month as a two-digit decimal string. More... | |
| int | year () const |
| Returns the year. More... | |
| std::string | yyyy () const |
| Returns the year as a four-digit decimal string. More... | |
| Date | next () const |
| Returns the next date. More... | |
| Date | previous () const |
| Returns the previous date. More... | |
| Date & | operator++ () |
| Increments the date by one day. More... | |
| Date & | operator-- () |
| Decrements the date by one day. More... | |
| bool | operator== (const Date &rhs) const |
| Comparison operator. More... | |
| bool | operator!= (const Date &rhs) const |
| Comparison operator. More... | |
Static Public Member Functions | |
| static int | yearUpperLimit () noexcept |
| Returns the largest supported year value. More... | |
| static int | yearLowerLimit () noexcept |
| Returns the smallest supported year value. More... | |
| G::Date::Date | ( | ) |
|
explicit |
|
explicit |
|
explicit |
| G::Date::Date | ( | SystemTime | t, |
| const LocalTime & | |||
| ) |
| G::Date::Date | ( | int | year, |
| Date::Month | month, | ||
| int | day_of_month | ||
| ) |
|
noexcept |
| std::string G::Date::dd | ( | ) | const |
| std::string G::Date::mm | ( | ) | const |
| G::Date::Month G::Date::month | ( | ) | const |
| int G::Date::monthday | ( | ) | const |
| std::string G::Date::monthName | ( | bool | brief = false | ) | const |
| bool G::Date::operator!= | ( | const Date & | rhs | ) | const |
| G::Date & G::Date::operator++ | ( | ) |
| G::Date & G::Date::operator-- | ( | ) |
| bool G::Date::operator== | ( | const Date & | rhs | ) | const |
| G::Date G::Date::previous | ( | ) | const |
| std::string G::Date::str | ( | Format | format = Format::yyyy_mm_dd_slash | ) | const |
| G::Date::Weekday G::Date::weekday | ( | ) | const |
| std::string G::Date::weekdayName | ( | bool | brief = false | ) | const |
|
staticnoexcept |
|
staticnoexcept |
| std::string G::Date::yyyy | ( | ) | const |