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
[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);
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
>
>
>
>
>
>
>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
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