The generation of files named at the current time is very useful for today's two major systems, using bat batch files and shell scripts to generate files that resemble "20110228_082905.txt" named "Month and Hour" in Windows and Linux operating systems, respectively.
Windows bat Batch file:
if/i%time_hh% LSS (set time_hh=0%time:~1,1%)
echo Test >>%filename%.txt
Linux Shell Script:
echo Test >> $ (date-d "Today" + "%y%m%d_%h%m%s"). txt