Possible Duplicate:
Calculating the Difference Between Two Java Date Instances
time1: 17:05 time2: 17:08
I'd like to get the difference in seconds.
Possible Duplicate:
Calculating the Difference Between Two Java Date Instances
time1: 17:05 time2: 17:08
I'd like to get the difference in seconds.
Use the Date Class
long diffInSec = (newerDate.getTime() - olderDate.getTime())/1000;