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 : Date(plist_t node, Node* parent = NULL); Date(const Date& d); Date& operator=(const Date& d); - Date(timeval t); + Date(int64_t t); virtual ~Date(); Node* Clone() const; - void SetValue(timeval t); - timeval GetValue() const; + void SetValue(int64_t t); + int64_t GetValue() const; }; }; |