File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Time Computation

Mike Abayon

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.
TotalTime= Timeout - Timein
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Use System.currentTimeMillis()
I agree. Here's the link:
subject: Time Computation
It's not a secret anymore!