Check out example codes for "get minute from milliseconds programmatically". It will help you in understanding the concepts better.

Code Example 1

val minute = (mil / 1000) / 60
val seconds = (mil / 1000) % 60

Learn ReactJs, React Native from akashmittal.com