<Get relative date time in string format> How to g...
# stackoverflow
u
Get relative date time in string format How to get relative Time of long time so that the exit is :

https://i.stack.imgur.com/KPU4Y.png

val relative = DateUtils.getRelativeTimeSpanString(1616782398.0.toLong()) Log.d("Debug Elapsed", relative.toString()) I try use DateUtils for this, but dont work because the result was Jan 19, 1970