ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Klein <jfkl...@wolfram.com>
Subject Re: Adding a year to tstamp date
Date Fri, 09 Feb 2007 14:57:11 GMT
cknell@onebox.com wrote:
>     <tstamp>
>       <format property="current.fy" pattern="yyyy" offset="1" />
>     </tstamp>
>   </case>
>
> But the offset isn't applied. When I <echo>${current.fy}</echo> I get "2007".
>
> Can someone offer me a solution to this?
>   
Looks like you can specify the units for offset, so try setting unit to 
"year".  The example from tstamp docs:

  <tstamp>
      <format property="touch.time" pattern="MM/dd/yyyy hh:mm aa"
              offset="-5" unit="hour"/>
  </tstamp>

-- 
Joel Klein



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


Mime
View raw message