mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
cb76e4da84
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.
6 lines
148 B
C
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);
|