Java Millisecond Convert toMillisInfo(long ms)

Here you can find the source of toMillisInfo(long ms)

Description

to Millis Info

License

Apache License

Declaration

public static long[] toMillisInfo(long ms) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static long[] toMillisInfo(long ms) {
        long hour, minute, second;
        hour = ms / 1000 / 60 / 60;//from   w ww. java  2 s .c  om
        minute = (ms - hour * 60 * 60 * 1000) / 1000 / 60;
        second = ms / 1000 - hour * 60 * 60 - minute * 60;
        return new long[] { hour, minute, second };
    }
}

Related

  1. toMilliseconds(long nanoseconds)
  2. toMilliseconds(long second)
  3. toMilliseconds(long seconds, long nanos)
  4. toMilliseconds(Object value)
  5. toMillisFromNanos(long nanos)
  6. toMillisToDayTime(long mill)
  7. toMillisToHHMMSSTime(long timeMillis)
  8. toMillisToKKMMSSTime(long mill)