Code: Select all
<project name="TIMESTAMP DEMO" mainModule="Main" version="1.0" logLevel="debug">
<module name="Main">
<timestamp />
<timestamp>
<format outputVariable="today" pattern="yyyy-MM-dd" />
</timestamp>
<ftp resourceId="DEV 53">
<put sourceFile="/gademo/payroll.xls" destinationFile="/gademo/linoma${today}.xls" />
</ftp>
<print>
<![CDATA[The Current system time is: ${system.currentTime}]]>
</print>
</module>
</project>
In the above example, the variable today is created. This variable can be used in naming a file.
Also the current system time is written to the GoAnywhere job log.