Here you can find the source of getHoursFromMillis(long ms)
public static String getHoursFromMillis(long ms)
//package com.java2s; //License from project: Open Source License public class Main { public static String getHoursFromMillis(long ms) { double numSeconds = ((ms) / 1000d); return String.valueOf(numSeconds / 3600); }//from w w w . j av a 2 s.com }