Android examples for java.util:Hour
get Hours From Milliseconds
//package com.java2s; public class Main { public static int getHoursFromMilliseconds(long milliseconds) { long time = milliseconds / 1000; return (int) (time / 3600); }// w w w . j av a2 s .co m }