try the code below:
long l = 1028641607545L;
SimpleDateFormat formatter = new SimpleDateFormat("hh:mm:ss");
java.util.Date jT = new java.util.Date(l);
String sT = formatter.format(jT);
System.out.println(sT);
--
hiren
-----Original Message-----
From: Gopinath D
To: [EMAIL PROTECTED]
Sent: 8/17/02 9:52 AM
Subject: How to change the format of accessed time ?
Hi all,
If i use the method getLastAccessedTime(), It returns the time
in milliseconds. But,I want to convert it to the time in the
format "HH:MM:SS".
For ex:
The above method returns the value 1028641607545. is it possible
to change the format given above?
Thanks in advance.
Gopi
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com