int to milliseconds java code example Example: get minute from milliseconds programmatically val minute = (mil / 1000) / 60 val seconds = (mil / 1000) % 60