Using Date and Time in Ant 在Ant中使用日期及时间

Categories: Development Notes; Tagged with: ; @ March 22nd, 2012 23:08

Example:

<tstamp>
            <format property="today" pattern="yyyy_MM_dd_HH_mm"/>
        </tstamp>
<echo message="${today}"></echo>

 

[echo] 2012_03_22_23_00

 

Tstamp in Ant manual:

http://ant.apache.org/manual/Tasks/tstamp.html

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.