Dateshift is a tool for shifting date/time. In particular it allows a process or set of process to run with a different clock setting, without having to change the system clock.
This is useful because changing the system clock requires root privilege and is inconvienient on shared machines.
You can download the source code from the links below. I've tested it on Linux and Solaris.
For installation dateshift using the usual sequence of commands:
tar xzvf dateshift-1.0.tar.gz
cd dateshift
./configure
make
make install
Dateshift comes with a manual page. You can see an html version of it here.
Dateshift intercepts the time() and gettimeofday() using the run time linker's LD_PRELOAD feature.
Dateshift is Copyright 2002, Alex Hornby
Last modified: Sun Jun 30 16:33:22 BST 2002