46 { sunday, monday, tuesday, wednesday, thursday, friday, saturday } ;
49 { january = 1 , february , march , april , may , june , july ,
50 august , september , october , november , december } ;
53 { yyyy_mm_dd_slash , yyyy_mm_dd , mm_dd } ;
65 explicit Date(
const LocalTime & ) ;
69 Date(
const G::DateTime::BrokenDownTime & tm ) ;
83 std::string
string( Format format = yyyy_mm_dd_slash )
const ;
89 std::string
weekdayName(
bool brief =
false )
const ;
97 std::string
dd()
const ;
101 Month
month()
const ;
104 std::string
monthName(
bool brief =
false )
const ;
107 std::string
mm()
const ;
113 std::string
yyyy()
const ;
130 void init(
const G::DateTime::BrokenDownTime & ) ;
131 static int lastDay(
int month ,
int year ) ;
132 static bool isLeapYear(
int y ) ;
A subsecond-resolution timestamp based on a time_t.
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.
std::string mm() const
Returns the month as a two-digit decimal string.