That sounds like precisely what I was looking for. Thanks!
Chris
> -----Original Message-----
> From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 07, 2001 5:43 PM
> To: [EMAIL PROTECTED]
> 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
>