Hi,
Assuming the long value 'modTime' is "milliseconds since January 1, 1970, 00:00:00
GMT", then you can create a Date object via:
import java.util.Date;
Dated = new Date(modTime);
You can print a user readable date via:
import java.text.DateFormat;
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT,
DateFormat.MEDIUM);
Stringts = df.format(d); // d is Date from first code sample above
System.out.println("modTime is: " + ts);
hope this helps,
-isa
http://www.sun.com/software/products/message_queue/index.xml