Here you can find the source of formatVideoRecordingTime(long t)
public static String formatVideoRecordingTime(long t)
//package com.java2s; //License from project: Apache License public class Main { public static String formatVideoRecordingTime(long t) { int m = (int) t / 60; int s = (int) t - m * 60; return String.format("%02d:%02d", m, s); }/*from ww w . jav a 2 s . c om*/ }