get Minutes From Milliseconds - Android java.util

Android examples for java.util:Minute

Description

get Minutes From Milliseconds

Demo Code


//package com.java2s;

public class Main {
    public static int getMinutesFromMilliseconds(long milliseconds) {
        long time = milliseconds / 1000;
        return (int) ((time % 3600) / 60);
    }//from w w  w.  j av a  2  s . c  o m
}

Related Tutorials