Java Minute Format formatTimeInMinutes(long l)

Here you can find the source of formatTimeInMinutes(long l)

Description

format Time In Minutes

License

Apache License

Declaration

public static String formatTimeInMinutes(long l) 

Method Source Code

//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 "";
    }
}

Related

  1. formatMinutes(long time)
  2. formatMinutes(long time)
  3. formatMinutes(long time, String timerPrecisionId, boolean round)
  4. formatMinutes(long timeMinutes)
  5. formatSecondsToMinutes(int secontsTotal)
  6. getFormattedHoursAndMinutes(final long millis)
  7. toReadableMinutes(long time)