I want to convert time amount from milli-sec to a human readable string.
For example:
3,600,000 should be displayed as 1:00:00 (1 hour).
Is there an existing library or class in Java that can do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since 1.5 there is the java.util.concurrent.TimeUnit class, use it like this:
For Versions below 1.5 You have to use