Date & Time Variables for User Menu
Posted: 04 Jun 2013, 17:59
It would be handy if we had date and time variables in the User Menu customization.
One implementation might just be to add $[date] and $[time] that would return the current date and time formatted according to regional settings.
Another approach might be to provide a syntax for custom format date / time like this:
$(YYYYMMDD) = 20130604
$(hhmmss) = 115223
The second method is preferred since the separators in the time string tend to include colons, which cannot be used in file names.
One application is when using PDFTK to combine PDF files into one PDF. This command syntax would include a date stamp in the name of the output file:
PDFTK $(ListOfSelectedNames) cat output PDFTK_$(YYYYMMDD).pdf
I apologize in advance if there is an easy way to do this (perhaps using a batch file wrapper), or if this has been requested many times.
Thanks!
One implementation might just be to add $[date] and $[time] that would return the current date and time formatted according to regional settings.
Another approach might be to provide a syntax for custom format date / time like this:
$(YYYYMMDD) = 20130604
$(hhmmss) = 115223
The second method is preferred since the separators in the time string tend to include colons, which cannot be used in file names.
One application is when using PDFTK to combine PDF files into one PDF. This command syntax would include a date stamp in the name of the output file:
PDFTK $(ListOfSelectedNames) cat output PDFTK_$(YYYYMMDD).pdf
I apologize in advance if there is an easy way to do this (perhaps using a batch file wrapper), or if this has been requested many times.
Thanks!