Java Utililty Methods Minute Get

List of utility methods to do Minute Get

Description

The list of methods to do Minute Get are organized into topic(s).

Method

longgetTimeInEpoch(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;
longgetTimeInMinuteResolution(long timeMillis)
get Time In Minute Resolution
return timeMillis / 60000 * 60000;
IntegergetTimeInMinutes(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;
...
intgetWholeMinutes(double coordinate)

Gets the minutes component from a decimal coordinate.

return (int) (((coordinate - getWholeDegrees(coordinate)) * 60));