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