Faking the date for a specific shell session

Posted by Julien Nicoulaud on Server Fault See other posts from Server Fault or by Julien Nicoulaud
Published on 2010-05-04T10:56:09Z Indexed on 2010/05/04 10:58 UTC
Read the original article Hit count: 289

Filed under:
|
|
|
|

I'm certainly trying to achieve something weird here, but I want to fake the date locally for a shell session on GNU/Linux. I need to black-box test how a program behaves at different dates, and modifying the system-wide date can have unwanted side effects (cron jobs, messed up logs, etc).

Any ideas ?

© Server Fault or respective owner

Related posts about shell

Related posts about unix-shell