That's indeed very useful, but I doubt it should be added to the core program. Assuming we're talking about the command line, why not create a function/alias in your terminal of choice? For example, in Windows/PowerShell I have a Get-FileNameSafeTimestamp function aliased to fst that returns exactly that. So, typing 7z.exe a "archive-$(fst).7z" * will add all current files to archive-20230602T1059340252.7z. My implementation is:
Please add a switch to generate archive name YYYYMMDDHHMMSS using the current date and time
ex.
archiveYYYYMMDDHHMMSS.7z
archive20230601012543.7z
That's indeed very useful, but I doubt it should be added to the core program. Assuming we're talking about the command line, why not create a function/alias in your terminal of choice? For example, in Windows/PowerShell I have a
Get-FileNameSafeTimestamp
function aliased tofst
that returns exactly that. So, typing7z.exe a "archive-$(fst).7z" *
will add all current files toarchive-20230602T1059340252.7z
. My implementation is:Not to mention that this way also makes it available to any program. :)