Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Installer Script - How to get current date and time
stvokr last edited by
I wonder how I can retrieve the current date and time in the installscript.qs.
I want to backup an existing data folder with
component.addOperation( "Execute", "tar", "cfz", dataFolder + ".tar.gz", dataFolder );
and this solution already works. But now I want to add a date/time stamp before the extension, e.g. "dataFolder.2019-01-11_11-18-00.tar.gz" or as ISO-Date.
Is there anyway to get the current date and time?