]> pilppa.org Git - lib1wire.git/blobdiff - src/Date.hh
Started adding support for caches when reading data. Cache files for
[lib1wire.git] / src / Date.hh
index 2d6fd757723a92d200b61a124383e0e04ba6fc7a..2a1015ca83c707f837051d4a01f631263dde7dd6 100644 (file)
@@ -29,17 +29,26 @@ namespace plp {
                        void inc_seconds(int seconds);
                        Date *clone();
                        void copy(Date *date);
-                       bool before(Date date2);
-                       bool equals(Date date2);
-                       std::string to_string();
-
+                       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;
                        int     hour;
                        int     min;
                        int     sec;
-               private:
+                       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[];
        };
 }