]> pilppa.org Git - lib1wire.git/blob - src/Date.hh
b2b908d38fbe2532b6b6e45dda778ea8e6ae95c7
[lib1wire.git] / src / Date.hh
1 /*
2  * Date.hh
3  *
4  *  Created on: Dec 7, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef DATE_HH_
9 #define DATE_HH_
10
11 #include <string>
12
13 namespace plp {
14         class Date {
15                 public:
16                         Date();
17                         Date(int year_param,
18                              int month_param,
19                              int day_param,
20                              int hour_param,
21                              int min_param,
22                              int sec_param);
23                         virtual ~Date();
24                         void printout();
25                         bool is_leap_year();
26                         void tomorrow();
27                         Date *clone();
28                         void copy(Date *date);
29                         bool before(Date date2);
30                         bool equals(Date date2);
31                         std::string to_string();
32
33                         int     year;
34                         int     month;
35                         int     day;
36                         int     hour;
37                         int     min;
38                         int     sec;
39                 private:
40                         //static const int arr_days_per_month[];
41         };
42 }
43
44 #endif /* DATE_HH_ */