In my application i should show hour and minute and i get this numbers from server with this sample :
Json :
{
data:{
time:84561
}
}
i should get this number from time and show it with this format
**hh : mm : ss**
I can get number of time, but i can't convert this to **hh : mm : ss**
.
How can i it?
DateUtils#formatElapsedTime
– KasiDate
. The troublesome old date-time classes such asjava.util.Date
&java.util.Calendar
are now legacy, supplanted by the java.time classes built into Java 8+. Much of the java.time functionality is back-ported to Java 6 & Java 7 in the ThreeTen-Backport project. Further adapted for earlier Android in ThreeTenABP project. See How to use ThreeTenABP…. – Meningitis