You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Tamas Nagy <na...@web.de> on 2003/02/08 20:21:45 UTC

Date property

How do you use date and time information within Ant? Is there any Date
or Time property? (Is there any plan for adding 'dynamic' properties,
such as time?)

Thanks,
Tamas


Re: Date property

Posted by Martin <mg...@hotmail.com>.
+1 for setting a property using <TStamp
 <tstamp>
      <format property="touch.time" pattern="MM/dd/yyyy hh:mm aa"
              offset="-5" unit="hour"/>
  </tstamp>
Creates a timestamp, in the property touch.time, 5 hours before the current
time
-M

----- Original Message -----
From: "Tamas Nagy" <na...@web.de>
To: <an...@jakarta.apache.org>
Sent: Saturday, February 08, 2003 3:21 PM
Subject: Date property


> How do you use date and time information within Ant? Is there any Date
> or Time property? (Is there any plan for adding 'dynamic' properties,
> such as time?)
>
> Thanks,
> Tamas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-user-help@jakarta.apache.org
>

Re: Date property

Posted by Antoine Levy-Lambert <le...@tiscali-dsl.de>.
You should look at the <tstamp/> task in the manual
----- Original Message ----- 
From: "Tamas Nagy" <na...@web.de>
To: <an...@jakarta.apache.org>
Sent: Saturday, February 08, 2003 8:21 PM
Subject: Date property


> How do you use date and time information within Ant? Is there any Date
> or Time property? (Is there any plan for adding 'dynamic' properties,
> such as time?)
> 
> Thanks,
> Tamas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-user-help@jakarta.apache.org
>