Re: AW: extract file date in a given format

2007-01-05 Thread T E Schmitz
T E Schmitz wrote: [EMAIL PROTECTED] wrote: I tried : l = new java.lang.Long (millis); d = new java.util.Date(l); This also results in a IllegalArgumentException when creating the Date. What an idiot! It's got to be d = new java.util.Date(l.longValue()); -- Regards/Gruß, Tarlika Elisabe

Re: AW: extract file date in a given format

2007-01-05 Thread T E Schmitz
[EMAIL PROTECTED] wrote: I tried to write a second script but am getting an IllegalArgumentException on "new Date(millis)": Project: public String getProperty(String propertyName) You have to convert the String into a long. I tried : l = new java.lang.Long (millis);

RE: extract file date in a given format

2007-01-04 Thread Rebhan, Gilbert
Hi, -Original Message- From: T E Schmitz [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 11:32 PM To: user@ant.apache.org Subject: extract file date in a given format /* Also: could I combine the two scripts and return 2 properties if format is specified? */ i also used

AW: extract file date in a given format

2007-01-04 Thread Jan.Materne
> > > > > > >I also need the date in a human readable format. > >I tried to write a second script but am getting an >IllegalArgumentException on "new Date(millis)": > > > > > > > > Project: public String getProperty(String propertyName) You have to convert

extract file date in a given format

2007-01-04 Thread T E Schmitz
Hello, I have a task which returns a file's date in epoch format (for use with 'touch'): I also need the date in a human readable format. I tried to write a second script but am getting an IllegalArgumentException on "new Date(millis)": Also: cou