This program is similar to driftnet.
It doesn't seem to be similar at all. The brief description of
driftnet in the list of all FreeBSD packages says, "Tool to grab images out of (your) TCP connections";
datefudge, on the other hand, lets you specify on the command line an arbitrary fudge factor and runs some arbitrary program you specify, providing substitute C library functions for things like
gettimeofday(3); these functions turn around and calls the usual functions, fudging the results before returning them.
Where is the source code? Find it and port it.
I've looked at the source code. It depends on lots of Linux idiosyncracies.
What are you trying to test?
It would be handy to be able to answer questions similar to "How does this program behave on a leap day?" Or even "Does this program deal properly with leap seconds?" Actually, the more general possibilities are fascinating.
If there is no such program, I'm tempted to hack
truss/
gdb to produce a general, script-driven layer between a running program and the outside world, without depending on modifying shared libraries.