Android Utililty Methods Milliseconds to Time Convert

List of utility methods to do Milliseconds to Time Convert

Description

The list of methods to do Milliseconds to Time Convert are organized into topic(s).

Method

StringparseInt2Time(int millisecond)
parse Int Time
int hour = (int) ((long) millisecond / (60 * 60 * 1000));
int munit = (int) ((long) (millisecond % (60 * 60 * 1000)) / (60 * 1000));
int second = (int) ((long) (millisecond % (60 * 1000)) / 1000);
return (hour == 0 ? "" : hour > 10 ? hour + ":" : "0" + hour + ":")
        + (munit == 0 ? "00:" : munit < 10 ? "0" + munit + ":"
                : munit + ":")
        + (second == 0 ? "00" : second < 10 ? "0" + second : second);