my dog learned polymorphism*
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
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()
 
 
subject: Time Computation