Files
Nikias Bassen cb76e4da84 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.
2025-05-13 18:34:32 +02:00

6 lines
148 B
C

#include <Python.h>
int64_t datetime_to_timestamp(PyObject* obj);
PyObject* timestamp_to_datetime(int64_t sec);
int check_datetime(PyObject* obj);