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

DategetMinuteDate(String date, String formatFormat)
get Minute Date
Calendar cal = Calendar.getInstance();
cal.setTime(strToDate(date, formatFormat));
cal.set(Calendar.SECOND, 0);
return cal.getTime();
StringgetMinuteFromHMS(String hms)
get Minute From HMS
if (hms == null || hms.length() != DEFAULT_TIME_FORMAT.length()) {
    return null;
return hms.substring(3, 5);
intgetMinuteFromMilliSecond(int milliSecond)
get Minute From Milli Second
return (milliSecond) / (60 * 1000);
LonggetMinuteFromTime(Long timeInMilliseconds)
returns minute since epoch
return timeInMilliseconds / (1000 * 60);
intgetMinuteInt(long time)
get Minute Int
if (time > (60 * 60)) {
    return (int) ((time % (60 * 60)) / (60));
} else {
    return (int) (time / (60));
VectorgetMinuten(boolean mitBlank)
get Minuten
return getArrayString(0, 59, 2, mitBlank);
IntegergetMinuteOfDay(Date date)
get Minute Of Day
Calendar cal = new GregorianCalendar();
cal.setTime(date);
return cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
intgetMinuteOfHour(String dateKey)
Get the minute of the date key.
return Integer.valueOf(dateKey.substring(11));
intgetMinutePeriod(int time, int period)
get Minute Period
int rest = time;
int hour = (int) (rest / HOUR_OFFSET);
rest -= (hour * HOUR_OFFSET);
int minute = (int) (rest / MONTH_OFFSET);
int minutes = minute + (hour * 60);
return minutes / period;
intgetMinutes()
get Minutes
Calendar calendar = Calendar.getInstance();
return calendar.get(Calendar.MINUTE);