Here you can find the source of milliSecondsToHMS(long l)
public static String milliSecondsToHMS(long l)
//package com.java2s; //License from project: GNU General Public License public class Main { public static String milliSecondsToHMS(long l) { l /= 1000;// w w w.j a va 2 s. co m long secs = l % 60; long hrs = l / 3600; long mins = (l - (hrs * 3600)) / 60; return String.format("%1$02d:%2$02d:%3$02d", hrs, mins, secs); } }