Java Millisecond Convert milliSecondsToHMS(long l)

Here you can find the source of milliSecondsToHMS(long l)

Description

milli Seconds To HMS

License

Open Source License

Declaration

public static String milliSecondsToHMS(long l) 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

public class Main {
    public static String milliSecondsToHMS(long l) {
        l /= 1000;//  w  w w.j a  va 2  s.  co  m

        long secs = l % 60;
        long hrs = l / 3600;
        long mins = (l - (hrs * 3600)) / 60;

        return String.format("%1$02d:%2$02d:%3$02d", hrs, mins, secs);
    }
}

Related

  1. getTimeTakenAsSecondsString(long timeTakenMillis)
  2. millisecondConvertToStringTime(final long milliseconds)
  3. millisecondsToDateTime(long timeMillis)
  4. millisecondsToDays(long p_timeInMilliseconds, long p_secondsInDay)
  5. millisecondsToHHMMSS(long milliseconds)
  6. milliSecondsToHMS(long numMillis)
  7. millisecondsToHuman(long ms)
  8. millisecondsToHumanDateWithSeconds(long milliseconds)
  9. millisecondsToHumanTime(long period)