Here you can find the source of parseMinutes(long time)
public static String parseMinutes(long time)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static String parseMinutes(long time) { SimpleDateFormat format = new SimpleDateFormat("mm:ss", Locale.GERMANY); Date date = new Date(time); return format.format(date); }//from w w w . j a v a2 s.c o m }