Here you can find the source of calculateHourMinute(long ms)
public static long[] calculateHourMinute(long ms)
//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*/ }