67 explicit Date(
const LocalTime & ) ;
91 std::string
weekdayName(
bool brief =
false )
const ;
99 std::string
dd()
const ;
106 std::string
monthName(
bool brief =
false )
const ;
109 std::string
mm()
const ;
115 std::string
yyyy()
const ;
133 static int lastDay(
int month ,
int year ) ;
134 static bool isLeapYear(
int y ) ;
Month month() const
Returns the month.
A date (dd/mm/yyyy) class.
std::string monthName(bool brief=false) const
Returns the month as a string (in english).
static int yearLowerLimit()
Returns the smallest supported year value.
bool operator!=(const Date &rhs) const
Comparison operator.
int monthday() const
Returns the day of the month.
int year() const
Returns the year.
bool operator==(const Date &rhs) const
Comparison operator.
An overload discriminator class for Date constructors.
std::string string(Format format=yyyy_mm_dd_slash) const
Returns a string representation of the date.
std::string dd() const
Returns the day of the month as a two-digit decimal string.
Date()
Default constructor for the current date in the UTC timezone.
std::string yyyy() const
Returns the year as a four-digit decimal string.
std::string weekdayName(bool brief=false) const
Returns an english string representation of the day of the week.
Date & operator--()
Decrements the date by one day.
Date & operator++()
Increments the date by one day.
Weekday weekday() const
Returns the day of the week.
static int yearUpperLimit()
Returns the largest supported year value.
struct std::tm BrokenDownTime
std::string mm() const
Returns the month as a two-digit decimal string.