pdflatex
command allows to specify an output name through --job-name=
option. But can't insert the date and time automatically.
Emacs could do it:
(compile-command "pdflatex --job-name=myoutputname.pdf myfile.tex")
How can the compile-command be modified to automatically add the date and time in the output name?