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

StringgetMinute(Date date)
get Minute
return FormatDate(date, "mm");
StringgetMinute(Date date)
get Minute
SimpleDateFormat _sdf = new SimpleDateFormat("mm");
String _value = _sdf.format(date);
return _value;
intgetMinute(Date date)
get Minute
calendar.setTime(date);
return calendar.get(Calendar.MINUTE);
intgetMinute(Date date1, Date date2)
get Minute
Long days = date1.getTime() - date2.getTime();
return (int) (days / 1000 / 60);
intgetMinute(long mills)
get Minute
return (int) (mills / ONE_MINUTE_MILLS);
intgetMinute(long time)
Gets the minute.
return (int) ((time - getTime(getHour(time), 0)) / (60 * 1000));
StringgetMinute(String time)
get Minute
return time.substring(2, 4);
StringgetMinuteAfter(Date date, int minute)
get Minute After
Calendar now = Calendar.getInstance(Locale.CHINA);
now.setTime(date);
if (minute > 0) {
    now.set(Calendar.MINUTE, now.get(Calendar.MINUTE) + minute);
now.set(Calendar.MINUTE, now.get(Calendar.MINUTE));
SimpleDateFormat format = new SimpleDateFormat(dtLong);
return format.format(now.getTime());
...
intgetMinuteAsInt(String hourString)
Gets the minute as int.
String[] start = hourString.split(":");
Integer minutes = Integer.parseInt(start[1]);
return minutes;
longgetMinuteCa(Date d1, Date d2)
get Minute Ca
long quot = Math.abs(d1.getTime() - d2.getTime());
quot = quot / 1000 / 60;
return quot;