Java Minute Format formatMinutes(long time)

Here you can find the source of formatMinutes(long time)

Description

format Minutes

License

Open Source License

Declaration

private static String formatMinutes(long time) 

Method Source Code

//package com.java2s;

public class Main {
    public static final long SECONDS_IN_MILLIS = 1000L;
    public static final String SECONDS = " seconds";

    private static String formatMinutes(long time) {
        //todo - implement this method.
        return formatSeconds(time);
    }//w w  w  .  ja va  2 s.com

    private static String formatSeconds(long time) {
        long kbsize = Math.round((float) time / SECONDS_IN_MILLIS); //format 0 decimal places
        return String.valueOf(kbsize) + SECONDS;
    }
}

Related

  1. calculateDayMinutes(String dayBegin, String dayEnd)
  2. calculateHourMinute(long ms)
  3. correctMinuteFormat(String minute)
  4. formatMinutes(double value)
  5. formatMinutes(int minutes)
  6. formatMinutes(long time)
  7. formatMinutes(long time, String timerPrecisionId, boolean round)
  8. formatMinutes(long timeMinutes)
  9. formatSecondsToMinutes(int secontsTotal)