Sometimes if we need to perform some tests we need some files to have a modification day and time matching our criteria. If we are in a Unix/Linux based system, we can use easily the command line tool “touch”.
An example command will be:
touch -t 01010001 file.txt
Extracted from “man touch”. The option “-t” changes the access and modification times to the specified time instead of the current time of day. The argument is of the form:[[CC]YY]MMDDhhmm[.SS]