You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Daniel Joshua <da...@gridnode.com> on 2004/04/15 11:11:14 UTC

[NEWBIE] How to echo the current time?

Simple question: How to echo the current time?


Regards,
Daniel

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


Re: [NEWBIE] How to echo the current time?

Posted by Ivan Ivanov <ra...@yahoo.com>.
--- Daniel Joshua <da...@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