Writing the time to the Header file