Changing what time a process thinks it is with libfaketime

09-22-2008 08:00 AM
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.

Source...