ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Greenlee" <CGreen...@demandsolutions.com>
Subject RE: Getting a relative time from within Ant
Date Thu, 08 Mar 2001 22:36:12 GMT

That sounds like precisely what I was looking for.  Thanks!

Chris

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
> Sent: Wednesday, March 07, 2001 5:43 PM
> To: ant-user@jakarta.apache.org
> Subject: RE: Getting a relative time from within Ant
> 
> 
> Diane,
> 
> Yes, I implemented it but I didn't document it. I'll rectify 
> that as soon as
> possible.
> 
> Here is the commit comment which explains usage.
> 
> Add the ability to specify time offsets when generating 
> time/date property
> strings.
> 
> Example usage:
> 
>   <target name="dateformats">
>     <tstamp>
>       <format property="now" pattern="dd/MM/yyyy HH:mm:ss.SS"/>
>       <format property="then" offset="-1" unit="year"
>               pattern="dd/MM/yyyy HH:mm:ss.SS"/>
>     </tstamp>
>     <echo message="now = ${now}, then = ${then}"/>
>   </target>
> 
> Supported units are millisecond, second, minute, hour, day, 
> week, month,
> year. The unit is case insensitive
> 
> Sorry about missing that.
> 
> Conor
> 

Mime
View raw message