4 * Conversion between Windows NT timestamps and UNIX timestamps.
7 #ifndef _WIMLIB_TIMESTAMP_H
8 #define _WIMLIB_TIMESTAMP_H
13 #include "wimlib/types.h"
16 wim_timestamp_to_time_t(u64 timestamp);
19 wim_timestamp_to_timeval(u64 timestamp);
21 extern struct timespec
22 wim_timestamp_to_timespec(u64 timestamp);
25 time_t_to_wim_timestamp(time_t t);
28 timeval_to_wim_timestamp(const struct timeval *tv);
31 timespec_to_wim_timestamp(const struct timespec *ts);
34 now_as_wim_timestamp(void);
37 wim_timestamp_to_str(u64 timestamp, tchar *buf, size_t len);
39 #endif /* _WIMLIB_TIMESTAMP_H */