get Hours From Milliseconds - Android java.util

Android examples for java.util:Hour

Description

get Hours From Milliseconds

Demo Code


//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
}

Related Tutorials