Use a Date object:
Date interestingDate = new Date();
You can find the different in milliseconds between the actual current date and interestingDate by doing:
long time = (new Date()).getTime() - interestingDate.getTime()
Exploration of Information, Communication and Technology
Use a Date object:
Date interestingDate = new Date();
You can find the different in milliseconds between the actual current date and interestingDate by doing:
long time = (new Date()).getTime() - interestingDate.getTime()