ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: [NEWBIE] How to echo the current time?
Date Thu, 15 Apr 2004 09:21:44 GMT

--- Daniel Joshua <daniel.joshua@gridnode.com> wrote:
> Simple question: How to echo the current time?
> 
> 
> Regards,
> Daniel
> 
> 
Hi Daniel,
you can do it with <tstamp> task. For example
        <tstamp>
            <format property="FULLDATE" pattern="MMMM
dd yyyy" locale="en"/>
            <format property="DATE"
pattern="yyyyMMdd"/>
            <format property="TIME" pattern="HH:mm"/>
        </tstamp>
        <echo>Ant started on ${FULLDATE}
${TIME}.</echo>

Ivan


	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message