How can I calculate a time span in Java and format the output?
- by fiXedd
I want to take two times (in seconds since epoch) and show the difference between the two in formats like:
2 minutes
1 hour, 15 minutes
3 hours, 9 minutes
1 minute ago
1 hour, 2 minutes ago
How can I accomplish this??