libfaketime 0.9.9

libfaketime intercepts various system calls that programs use to retrieve the current date and time. It then reports modified (faked) dates and times (as specified by the user) to these programs. This means you can modify the system time a program sees without having to change the time system-wide.

Tags library systems-administration c developers end-users system-administrators
License GNU GPL
State stable

Recent Releases

0.9.921 Feb 2021 17:38 major feature: - FAKE_RANDOM flag enables deterministic return values for getrandom(), e.g., for testing cryptographic implementations - new environment variable FAKETIME_TIMESTAMP_FILE to externally track a process' fake time - FAKE_SETTIME flag enables the interception of system calls such as clock_settime() and settimeofday() - various bugfixes
0.9.714 Nov 2017 19:53 minor feature: -added an option to disable monotonic time faking - added support for COARSE clocks - Preliminary support for CLOCK_BOOTTIME (Linux) - Fixed compilation on macOS (High) Sierra and various compiler warnings - Support for select() call added - Updated documentation