SetFileDate

SetFileDate["file"]
set the file access and modification dates of file to the current date.
SetFileDate["file", date]
set the file access and modification dates of file to the specified date list.
SetFileDate["file", date, "type"]
set the file date of file to the specified date list. The "type“ can be one of ”Access“, ”Creation“, ”Modification", or All.

Create a temporary file (for example purposes)