Java Minute Format calculateHourMinute(long ms)

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

Description

calculate Hour Minute

License

Open Source License

Declaration

public static long[] calculateHourMinute(long ms) 

Method Source Code

//package com.java2s;

public class Main {
    public static long[] calculateHourMinute(long ms) {
        long hour = ms / (60 * 60 * 1000);
        long minute = (ms % (60 * 60 * 1000)) / (60 * 1000);
        return new long[] { hour, minute };
    }/*from  www.ja  va  2 s  .c o  m*/
}

Related

  1. calculateDayMinutes(String dayBegin, String dayEnd)
  2. correctMinuteFormat(String minute)
  3. formatMinutes(double value)
  4. formatMinutes(int minutes)
  5. formatMinutes(long time)