When I create my logfile, I want the name to contain the datetime.
In Python you can get the current datetime as:
>>> from datetime import da
Yes. Have a look at the datetime API, in particular strftime.
strftime
from datetime import datetime print datetime.now().strftime("%d_%m_%Y")