Android examples for java.util:Millisecond
Gets minutes value from milliseconds.
//package com.java2s; import java.util.Calendar; public class Main { /**//from w w w.j ava 2 s . c o m * Gets minutes value from milliseconds. * @param milliSeconds Timestamp in milliseconds. * @return Minutes. */ public static int getMinuteFromMilliseconds(Long milliSeconds) { Calendar time = Calendar.getInstance(); time.setTimeInMillis(milliSeconds); return time.get(Calendar.MINUTE); } }