Here you can find the source of millisToStringConvert(long millis)
public static String millisToStringConvert(long millis)
//package com.java2s; //License from project: Apache License import java.util.Locale; import java.util.concurrent.TimeUnit; public class Main { public static String millisToStringConvert(long millis) { return String.format(Locale.getDefault(), "%d min, %d sek", TimeUnit.MILLISECONDS.toMinutes(millis), TimeUnit.MILLISECONDS.toSeconds(millis) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis))); }/*from ww w.j a v a 2 s. c o m*/ }