diff options
| author | 2009-10-17 11:10:54 +0200 | |
|---|---|---|
| committer | 2009-10-17 11:10:54 +0200 | |
| commit | 33de762cf636e3f13f17e02d70de2869664e3f2b (patch) | |
| tree | edb92293a1f61d358c76180b9d96b7642f1614a4 /include/plist/Date.h | |
| parent | 6f453688c0b97ea979b2b2b515f4030e69e846fb (diff) | |
| download | libplist-33de762cf636e3f13f17e02d70de2869664e3f2b.tar.gz libplist-33de762cf636e3f13f17e02d70de2869664e3f2b.tar.bz2 | |
Implement Date object.
Diffstat (limited to 'include/plist/Date.h')
| -rw-r--r-- | include/plist/Date.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/plist/Date.h b/include/plist/Date.h index e9645aa..5472657 100644 --- a/include/plist/Date.h +++ b/include/plist/Date.h | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #define DATE_H | 23 | #define DATE_H |
| 24 | 24 | ||
| 25 | #include <plist/Node.h> | 25 | #include <plist/Node.h> |
| 26 | #include <ctime> | ||
| 26 | 27 | ||
| 27 | namespace PList | 28 | namespace PList |
| 28 | { | 29 | { |
| @@ -34,13 +35,13 @@ class Date : public Node | |||
| 34 | Date(plist_t node); | 35 | Date(plist_t node); |
| 35 | Date(Date& d); | 36 | Date(Date& d); |
| 36 | Date& operator=(Date& d); | 37 | Date& operator=(Date& d); |
| 37 | Date(uint64_t i); | 38 | Date(timeval t); |
| 38 | virtual ~Date(); | 39 | virtual ~Date(); |
| 39 | 40 | ||
| 40 | Node* Clone(); | 41 | Node* Clone(); |
| 41 | 42 | ||
| 42 | void SetValue(uint64_t i); | 43 | void SetValue(timeval t); |
| 43 | uint64_t GetValue(); | 44 | timeval GetValue(); |
| 44 | }; | 45 | }; |
| 45 | 46 | ||
| 46 | }; | 47 | }; |
