]> wimlib.net Git - wimlib/blobdiff - src/timestamp.c
Use time-based ratelimiting for data progress messages
[wimlib] / src / timestamp.c
index 51046cdb68084048df29ab185ecd6f03cbeaba33..f79f48670b9bc7fac6604df2f98755f6a437e008 100644 (file)
 #include "wimlib.h" /* for struct wimlib_timespec */
 #include "wimlib/timestamp.h"
 
-/*
- * Timestamps in WIM files are Windows NT timestamps, or FILETIMEs: 64-bit
- * values storing the number of 100-nanosecond ticks since January 1, 1601.
- *
- * Note: UNIX timestamps are signed; Windows timestamps are not.  Negative UNIX
- * timestamps represent times before 1970-01-01.  When such a timestamp is
- * converted to a Windows timestamp, we can preserve the correct date provided
- * that it is not also before 1601-01-01.
- */
-
-#define NANOSECONDS_PER_TICK   100
-#define TICKS_PER_SECOND       (1000000000 / NANOSECONDS_PER_TICK)
-#define TICKS_PER_MICROSECOND  (TICKS_PER_SECOND / 1000000)
-
-/*
- * EPOCH_DISTANCE is the number of seconds separating the Windows NT and UNIX
- * epochs.  This is equal to ((1970-1601)*365+89)*24*60*60.  89 is the number
- * of leap years between 1970 and 1601.
- */
-#define EPOCH_DISTANCE         11644473600
-
 /* Windows NT timestamps to UNIX timestamps  */
 
 time_t