ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry V. Streepy, Jr." <stre...@healthlanguage.com>
Subject Re: tsamp is messed up : seemingly
Date Wed, 20 Jun 2001 19:09:17 GMT
The tstamp task uses a normal java date formatter to do its work.  So,
"mm" means minutes, not month.

You probably want "MMddyyyy" which yields "06202001" today.

Viraj Purang wrote:
> 
> Hi,
>   I get a weird error when I am using the following statements.
> ___________________________________________
> <target name="build-tstamp">
>     <tstamp>
>         <format property="TODAY" pattern="mmddyyyy"/>
>     </tstamp>
>   <echo message="The value of TODAY is : ${TODAY}"/>
> </target>
>   ___________________________________________
> The date is field is OK but the month field keeps getting all junk values,
> let me see if it mnakes difference if it is initialized  to 0 in properties.
> I need to use this for tagging my code while I check it out.
> _____________________________________________
> Total time: 1 second
> C:\CVS1\builder>ant build-tstamp
> Buildfile: build.xml
> build-tstamp:
>      [echo] The value of TODAY is : 24202001
> BUILD SUCCESSFUL
> 
> Total time: 1 second
> C:\CVS1\builder>ant build-tstamp
> Buildfile: build.xml
> build-tstamp:
>      [echo] The value of TODAY is : 25202001
> BUILD SUCCESSFUL
> Total time: 1 second1
> __________________________________________
> 
> Regards,
> Viraj Purang

-- 
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"

970/626-5028 (office)           mailto:streepy@healthlanguage.com
970/626-4425 (fax)              http://www.healthlanguage.com

Mime
View raw message