affix_datetime function

Put the current datetime into a file name