Sorry, I have no way to set the clock back for a long enough time for you to be able to write this program.
If you still want to write the program, post the code that you currently have in the...