diff options
| author | 2025-05-13 18:34:32 +0200 | |
|---|---|---|
| committer | 2025-05-13 18:34:32 +0200 | |
| commit | cb76e4da84c61609c13e84c922f14a27b8348a36 (patch) | |
| tree | 6f0057efd11780ec38da6e8b686726f51bd10f30 /include/plist/Date.h | |
| parent | d7fe479707af57aeedf7e41c08e7fb698cd2e2a3 (diff) | |
| download | libplist-cb76e4da84c61609c13e84c922f14a27b8348a36.tar.gz libplist-cb76e4da84c61609c13e84c922f14a27b8348a36.tar.bz2 | |
Add plist_new_unix_date, plist_get_unix_date_val, plist_set_unix_date_val functions
These functions work with int64_t values representing a UNIX timestamp instead
of using the 'MAC epoch'. They should be used instead of plist_new_date,
plist_get_date_val, and plist_set_date_val, which are now marked deprecated
and might be removed in a future version of libplist.
Diffstat (limited to 'include/plist/Date.h')
| -rw-r--r-- | include/plist/Date.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/plist/Date.h b/include/plist/Date.h index 5113cf3..7026699 100644 --- a/include/plist/Date.h +++ b/include/plist/Date.h | |||
| @@ -40,13 +40,13 @@ public : | |||
| 40 | Date(plist_t node, Node* parent = NULL); | 40 | Date(plist_t node, Node* parent = NULL); |
| 41 | Date(const Date& d); | 41 | Date(const Date& d); |
| 42 | Date& operator=(const Date& d); | 42 | Date& operator=(const Date& d); |
| 43 | Date(timeval t); | 43 | Date(int64_t t); |
| 44 | virtual ~Date(); | 44 | virtual ~Date(); |
| 45 | 45 | ||
| 46 | Node* Clone() const; | 46 | Node* Clone() const; |
| 47 | 47 | ||
| 48 | void SetValue(timeval t); | 48 | void SetValue(int64_t t); |
| 49 | timeval GetValue() const; | 49 | int64_t GetValue() const; |
| 50 | }; | 50 | }; |
| 51 | 51 | ||
| 52 | }; | 52 | }; |
