Changing what time a process thinks it is with libfaketime

Posted by Scott_Ruecker on Sep 22, 2008 5:37 PM
By Linux.com
Mail this story
Web version

With libfaketime you can tell a process that the current time is something different from the machine's system clock. This fake time setting affects not only the functions directly related to reading the system time, but also file timestamps such as modification times. With libfaketime you can test how a program will respond when it is running in the future or in a different timezone without having to change your machine's system clock. Timezone testing can be useful for network applications where a certificate may have already expired in a given timezone but might still work in your local environment.

Full Story

Printed at http://lxer.com/module/newswire/view/109069/index.html