Java Time Format formatTime(final int timeSec)

Here you can find the source of formatTime(final int timeSec)

Description

format Time

License

Open Source License

Declaration

public static String formatTime(final int timeSec) 

Method Source Code

//package com.java2s;

public class Main {
    public static String formatTime(final int timeSec) {
        int s = timeSec;
        int m = s / 60;
        s -= (m * 60);/*  ww w . j ava  2s .  com*/
        return String.format("%02d:%02d", m, s);
    }
}

Related

  1. formattedStats(String pExecTime, int pTxns)
  2. formattedUnixTime()
  3. formatTime(byte[] btValue, int iOffset, int iLength)
  4. formatTime(double time)
  5. formatTime(double totalTime)
  6. formatTime(final long time)
  7. formatTime(final long time)
  8. formatTime(final long timeMS)
  9. formatTime(float seconds)