Here you can find the source of milliToHourMinuteString(long millis)
public static String milliToHourMinuteString(long millis)
//package com.java2s; //License from project: Apache License public class Main { public static String milliToHourMinuteString(long millis) { long uptimeHours = millis / 3600000; long uptimeMinutes = millis % 3600000; return uptimeHours + "hours " + uptimeMinutes + " minutes"; }//from w w w .j av a 2 s.co m }