In general, I can recommend libfaketime to do unit tests that need to happen at specific times/dates. It uses environment variables to fake time to an application. http://www.code-wizards.com/projects/libfaketime/ Paul