X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FDate.hh;fp=src%2FDate.hh;h=2a1015ca83c707f837051d4a01f631263dde7dd6;hb=d01194ab9275bc97176071089edc2781bb4de51b;hp=3c019995683b3f61be43b1925aa74f5a42bcd9ba;hpb=56242039f27dc5d36117b8d513731c7a9009d4b1;p=lib1wire.git diff --git a/src/Date.hh b/src/Date.hh index 3c01999..2a1015c 100644 --- a/src/Date.hh +++ b/src/Date.hh @@ -31,6 +31,12 @@ namespace plp { void copy(Date *date); bool before(Date *date2); bool equals(Date *date2); + bool before_or_equal(Date *date2); + bool before_or_equal_year(Date *date2); + bool before_or_equal_month(Date *date2); + bool before_or_equal_day(Date *date2); + bool before_or_equal_hour(Date *date2); + bool before_or_equal_min(Date *date2); int year; int month; int day; @@ -40,6 +46,9 @@ namespace plp { std::string to_string(); protected: std::string to_sortable_string(); + std::string to_sortable_day_string(); + std::string to_sortable_hour_string(); + std::string to_sortable_min_string(); //static const int arr_days_per_month[]; }; }