In one statement, no, in one line, yes:
from datetime import datetime as dt;now=dt.nowBut then, to use the value of "now" you have to add more statements, so what is the point?
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net