Java Utililty Methods Minute

List of utility methods to do Minute

Description

The list of methods to do Minute are organized into topic(s).

Method

booleanisMinute(int num)
is Minute
return isNumBetween(0, num, 59);
booleanisValidMinute(final int min)
is Valid Minute
return min >= 0 && min < 60;
booleanisWholeMinute(int seconds)
is Whole Minute
if (seconds < 0) {
    return false;
if (seconds == 0) {
    return true;
return seconds % 60 == 0;
doubleminute(double serial_number)
minute
if (!isFinite(serial_number)) {
    return Double.NaN;
double res = Math.floor((serial_number - Math.floor(serial_number)) * 86400 + 0.5);
return Math.floor(res / 60) % 60;
longMINUTE(int min)
MINUTE
return min * 60 * 1000;
Stringminute2hour(int minute)
minutehour
return String.valueOf(1.0 * ((minute + 3) * 10 / 60) / 10);
intminutes()
How many minutes on
return (int) Math.floor(seconds() / 60);
intminutes(int m)
minutes
return m * seconds(60);
intminutes(int minutes)
minutes
return minutes * 60000;
longminutes(int minutes)
minutes
return minutes * 60 * ONE_SECOND_IN_MILLIS;