Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Time Computation

 
Mike Abayon
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to know how to get the employee's time-in/time-out and compute the difference.
Formula:
TotalTime= Timeout - Timein
Thanks.
 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use System.currentTimeMillis()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic