• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying current time

 
Jane Dunne
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to display the time when a user logs out of my application. I'm using
System.out.println(System.currentTimeMillis());
but it keeps returning 1153135669261 every time. How can I capture the current time and display it in hours, minutes and seconds?

Thanks alot
 
Joe Ess
Bartender
Posts: 9295
10
Linux Mac OS X Windows
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hope it helps


[ July 17, 2006: Message edited by: Ankur Sharma ]
 
Jane Dunne
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
new Date.toString() worked. Thanks alot!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic