Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes Time Computation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Time Computation" Watch "Time Computation" New topic
Author

Time Computation

Mike Abayon
Greenhorn

Joined: Jun 14, 2001
Posts: 8
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

Joined: Sep 05, 2000
Posts: 523

Use System.currentTimeMillis()
 
Consider Paul's rocket mass heater.
 
subject: Time Computation
 
Similar Threads
Riddle
WA #1.....word association
WA #2 ..... word association
JQ+
Scrabble... it only takes a minute...