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