Provided by: datefudge_1.18ubuntu3_amd64
datefudge - pretend the system time is different
datefudge [-s|--static] at_date program [arguments ...]
datefudge is a small utility that pretends that the system time is different by pre- loading a small library which modifies the time(2), gettimeofday(2) and clock_gettime(2) system calls.
--static, -s set date as a `static' one. The above mentioned system calls will always return the date passed as a parameter of the program regardless of time passing. See EXAMPLES below. --help, -h print short usage information and exit. --version, -v print version information and exit.
Basic example: $ datefudge "2007-04-01 10:23" date -R Sun, 01 Apr 2007 10:23:00 +0200 Non-static vs. static example: $ datefudge "2007-04-01 10:23" sh -c "sleep 3; date -R" Sun, 01 Apr 2007 10:23:03 +0200 $ datefudge --static "2007-04-01 10:23" sh -c "sleep 3; date -R" Sun, 01 Apr 2007 10:23:00 +0200
Written by Matthias Urlichs <firstname.lastname@example.org>. Modified by Robert Luberda <email@example.com>.
There is no attempt to make this change undetectable by the program. In particular, file modification times are not modified.
Copyright © 2003 by Matthias Urlichs. Copyright © 2008-2011 by Robert Luberda. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You may redistribute copies of datefudge under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.
ld.so(1), time(2), gettimeofday(2), clock_gettime(2)