class Inti::Date is declared in the header inti/timedate.h.
Superclasses. none
Subclasses. none
Public Enumerations.
enum Weekday enum Month |
Public Methods.
bool valid () const Weekday weekday () const unsigned int julian () const unsigned int year () const unsigned int day () const Month month () const unsigned int day_of_year () const unsigned int monday_week_of_year () const unsigned int sunday_week_of_year () const bool first_of_month () const bool last_of_month () const void parse (const ustring & text) void parse (const char * text) void set_time (GTime t) void set_month (Month m) void set_day (unsigned int day) void set_year (unsigned int year) void set_dmy (unsigned int day, Month m, unsigned int year) void set_julian (unsigned int julian) void add_days (unsigned int n_days) void subtract_days (unsigned int n_days) void add_months (unsigned int n_months) void subtract_months (unsigned int n_months) void add_years (unsigned int n_years) void subtract_years (unsigned int n_years) bool operator== (const Date & rhs) const bool operator!= (const Date & rhs) const bool operator< (const Date & rhs) const bool operator<= (const Date & rhs) const bool operator> (const Date & rhs) const bool operator>= (const Date & rhs) const void to_struct_tm (struct tm * tm) ustring strftime (const string & format) ustring strftime (const char * format) |
Public Functions.
bool valid_day (unsigned int day) bool valid_month (Month m) bool valid_year (unsigned int year) bool valid_weekday (Weekday w) bool valid_julian (unsigned int julian) bool valid_dmy (unsigned int day, Month m, unsigned int year) bool leap_year (unsigned int year) unsigned int days_in_month (Month m, unsigned int year) unsigned int monday_weeks_in_year (unsigned int year) unsigned int sunday_weeks_in_year (unsigned int year) |