Issue
In Kotlin, what will be the appropriate way of converting milliseconds (in Long type) to minutes?
Solution
You can use TimeUnit class which can convert different time units:
TimeUnit.MILLISECONDS.toMinutes(milliseconds)
TimeUnit.SECONDS.toMillis(seconds)
Answered By - Autocrab
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.