4 ms·
I recently came across libfaketime. It intercepts time related system calls, so you can set a time of your choosing, starting from program startup. $ faketime
by jcul 3y ago
I recently came across libfaketime. It intercepts time related system calls, so you can set a time of your choosing, starting from program startup.
$ faketime 'last friday 5 pm' sh -c "/bin/date; sleep 5; /bin/date"
Fri 15 Dec 2023 17:00:00 GMT
Fri 15 Dec 2023 17:00:05 GMT