Here you can find the source of formatTimeInMinutes(long l)
public static String formatTimeInMinutes(long l)
//package com.java2s; //License from project: Apache License public class Main { public static String formatTimeInMinutes(long l) { if (l <= 0) return null; long mins = l / 1000 / 60; if (l > 0) { return String.valueOf(mins) + " min"; }/*from w ww . j a v a 2s . co m*/ return ""; } }