Java Millisecond Convert millisecondsToTimerString(long millis)

Here you can find the source of millisecondsToTimerString(long millis)

Description

milliseconds To Timer String

License

Open Source License

Declaration

public static String millisecondsToTimerString(long millis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String millisecondsToTimerString(long millis) {
        Date date = new Date(millis);
        DateFormat formatter = new SimpleDateFormat("mm:ss");
        return formatter.format(date);
    }/*w  ww.j  a v  a2  s  . co m*/
}

Related

  1. millisecondsToSeconds(long ms)
  2. millisecondsToSecondsString(long millis)
  3. milliSecondsToString(long interval)
  4. millisecondsToString(long milliseconds)
  5. millisecondsToString(long time)
  6. millisecondsToTimestamp(final long milliseconds)
  7. millisecondsToTimeString(int milliseconds)
  8. millisecondToDate(long timeMillis)
  9. millisecondToDate(String str)