Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 314 Bytes

ant-timestamps.md

File metadata and controls

14 lines (10 loc) · 314 Bytes

Title: Ant: Timestamps Tags: ant|ant-date Date: 2012-12-04 13:14:26 -0500 Author: Denevell

You can set the format of a timestamp as follows:

 <tstamp>
  <format pattern="yyyy-MM-dd-HH-mm-ss" property="TIME_STAMP"/>
 </tstamp>

And then echo it as a ${TIME_STAMP}.

The format is the same as Java's.