List of utility methods to do Minute Get
int | getMinutes(Date date) get Minutes GregorianCalendar calendar = (GregorianCalendar) GregorianCalendar.getInstance(); long time = date.getTime(); calendar.setTimeInMillis(time); return calendar.get(calendar.MINUTE); |
String | getMinutes(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(); |
int | getMinutes(double t) Returns full number of minutes for given double time value.
double tt = (t - getHours(t)) * 60; return (int) Math.floor(tt); |
int | getMinutes(final double DEC_DEG) get Minutes return (int) ((DEC_DEG - getDegrees(DEC_DEG)) * 60); |
int | getMinutes(int minutes) get Minutes int minute = minutes % 60; return minute; |
int | getMinutes(long time) get Minutes return Integer.valueOf(MINUTE_FORMATTER.format(new Date(time))); |
Integer | getMinutes(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; ... |
int | getMinutes(String time) get Minutes String[] timeTmp = getTimeFromString(time);
return Integer.parseInt(timeTmp[1]);
|
int | getMinutes(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; |
long | getMinutesDiff(long from, long to) get Minutes Diff long delta = to - from; return delta / MINUTE; |