How do you access your computer's time using Java?  
Author Message
sambitmukherjee





PostPosted: 2004-10-3 20:29:00 Top

java-programmer, How do you access your computer's time using Java? What is the way of getting your system's current time(as shown in the
system tray in Windows) in Java?
Thanks.
 
Andrew Thompson





PostPosted: 2004-10-3 20:43:00 Top

java-programmer >> How do you access your computer's time using Java? On 3 Oct 2004 05:28:43 -0700, Sambit Mukherjee wrote:

> What is the way of getting your system's current time ..

<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#currentTimeMillis()>

>...(as shown in the system tray in Windows) ..

<http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html>
<http://java.sun.com/j2se/1.5.0/docs/api/java/text/DateFormat.html>

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane