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

intgetMinutes(Date date)
get Minutes
GregorianCalendar calendar = (GregorianCalendar) GregorianCalendar.getInstance();
long time = date.getTime();
calendar.setTimeInMillis(time);
return calendar.get(calendar.MINUTE);
StringgetMinutes(double seconds)
get Minutes
final int minutes = (int) (Math.floor(seconds / 60));
final StringBuffer sb = new StringBuffer();
if (minutes >= 10) {
    sb.append(minutes);
} else {
    sb.append(0);
    sb.append(minutes);
return sb.toString();
intgetMinutes(double t)
Returns full number of minutes for given double time value.
double tt = (t - getHours(t)) * 60;
return (int) Math.floor(tt);
intgetMinutes(final double DEC_DEG)
get Minutes
return (int) ((DEC_DEG - getDegrees(DEC_DEG)) * 60);
intgetMinutes(int minutes)
get Minutes
int minute = minutes % 60;
return minute;
intgetMinutes(long time)
get Minutes
return Integer.valueOf(MINUTE_FORMATTER.format(new Date(time)));
IntegergetMinutes(String hora)
get Minutes
Integer Minutes;
int h, m;
try {
    SimpleDateFormat format1 = new SimpleDateFormat("H:m:s");
    Date dt1 = format1.parse(hora);
    DateFormat format2 = new SimpleDateFormat("H");
    h = Integer.valueOf(format2.format(dt1));
    m = 0;
...
intgetMinutes(String time)
get Minutes
String[] timeTmp = getTimeFromString(time);
return Integer.parseInt(timeTmp[1]);
intgetMinutes(String time, int defaultValue)
get Minutes
if (time == null || time.equals(""))
    return defaultValue;
String[] str = time.split(":");
if (str.length > 1)
    return new Integer(str[1]).intValue();
else
    return defaultValue;
longgetMinutesDiff(long from, long to)
get Minutes Diff
long delta = to - from;
return delta / MINUTE;