Android Second to Time intSecondsToStringMinSec(int input)

Here you can find the source of intSecondsToStringMinSec(int input)

Description

int Seconds To String Min Sec

Declaration

public static String intSecondsToStringMinSec(int input) 

Method Source Code

//package com.java2s;
import java.text.DecimalFormat;

public class Main {
    public static String intSecondsToStringMinSec(int input) {
        DecimalFormat df = new DecimalFormat("#00");
        int m, s;
        m = input / 60;/*from  w  w  w  . j  a v a  2  s .  c  o m*/
        s = input % 60;
        String tmp = new String();
        tmp = df.format(m) + ":" + df.format(s);
        return tmp;
    }
}

Related

  1. convertSecondsToTimeStamp(int seconds)
  2. secsToText(long time)
  3. calculateDhms(int seconds)
  4. secondsToString(int seconds)
  5. getTimeRemaining(long durationInMilliseconds)
  6. timeRemaining(double seconds)
  7. getDfferenceInMinute(long miliseconds)
  8. getTimeForm(long milliseconds)