Here you can find the source of millisToString(long l)
public static String millisToString(long l)
//package com.java2s; public class Main { public static String millisToString(long l) { return String.format("%02d:%02d:%02d", (l / 1000) / 60, (l / 1000) % 60, (l / 10) % 100); }/*from w ww. j a v a 2s . c o m*/ }