Here you can find the source of longToTimeString(long time)
public static String longToTimeString(long time)
//package com.java2s; public class Main { public static String longToTimeString(long time) { long min = (time / 1000) / 60; long sec = (time / 1000) % 60; return String.format("%02d:%02d", min, sec); }//ww w.j av a 2 s.c o m }