List of utility methods to do Minute Get
long | getTimeInEpoch(int offSetInMinutes) get Time In Epoch Date dNow = new Date(); Calendar calendar = Calendar.getInstance(); calendar.setTime(dNow); calendar.add(Calendar.MINUTE, offSetInMinutes); return calendar.getTimeInMillis() / 1000; |
long | getTimeInMinuteResolution(long timeMillis) get Time In Minute Resolution return timeMillis / 60000 * 60000;
|
Integer | getTimeInMinutes(final String duration) Calculate minutes of duration. Integer totalMinutes = null; if (!"".equals(duration)) { final int index = duration.indexOf(':'); final Integer hours = Integer.valueOf(duration.substring(0, index)); final Integer minutes = Integer.valueOf(duration.substring(index + 1)); totalMinutes = Integer.valueOf((hours.intValue() * 60) + minutes.intValue()); return totalMinutes; ... |
int | getWholeMinutes(double coordinate) Gets the minutes component from a decimal coordinate. return (int) (((coordinate - getWholeDegrees(coordinate)) * 60)); |