Dateshift - a date/time test tool

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.

Why?

Why would you want to test software at different dates/times? Some example uses:

Getting Dateshift

You can download the source code from the links below. I've tested it on Linux and Solaris.

dateshift-1.0.tar.gz

Installing Dateshift

For installation dateshift using the usual sequence of commands:

tar xzvf dateshift-1.0.tar.gz
cd dateshift
./configure
make
make install

User Documentation

Dateshift comes with a manual page. You can see an html version of it here.

How does it work?

Dateshift intercepts the time() and gettimeofday() using the run time linker's LD_PRELOAD feature.

Copyright

Dateshift is Copyright 2002, Alex Hornby under the terms of the GNU General Public Licence version 2 or later.


Contact the author:Alex Hornby

Back to: Alex's Home Page

Last modified: Sun Jun 30 16:33:22 BST 2002