List of utility methods to do Minute Get
String | getMinute(Date date) get Minute return FormatDate(date, "mm"); |
String | getMinute(Date date) get Minute SimpleDateFormat _sdf = new SimpleDateFormat("mm"); String _value = _sdf.format(date); return _value; |
int | getMinute(Date date) get Minute calendar.setTime(date);
return calendar.get(Calendar.MINUTE);
|
int | getMinute(Date date1, Date date2) get Minute Long days = date1.getTime() - date2.getTime(); return (int) (days / 1000 / 60); |
int | getMinute(long mills) get Minute return (int) (mills / ONE_MINUTE_MILLS); |
int | getMinute(long time) Gets the minute. return (int) ((time - getTime(getHour(time), 0)) / (60 * 1000)); |
String | getMinute(String time) get Minute return time.substring(2, 4);
|
String | getMinuteAfter(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()); ... |
int | getMinuteAsInt(String hourString) Gets the minute as int. String[] start = hourString.split(":"); Integer minutes = Integer.parseInt(start[1]); return minutes; |
long | getMinuteCa(Date d1, Date d2) get Minute Ca long quot = Math.abs(d1.getTime() - d2.getTime()); quot = quot / 1000 / 60; return quot; |