Java Utililty Methods Minute Convert

List of utility methods to do Minute Convert

Description

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

Method

intminutesToMillis(int minutes)
minutes To Millis
return secondsToMillis(minutes * 60);
longminutesToMillis(long minutes)
minutes To Millis
return minutes * MINTUE_TO_MILLIS;
intminutesToMilliseconds(final int val)
Converts minutes to milliseconds.
return val * SECONDS_IN_MINUTE * MILLIS_IN_SECOND;
longminutesToMilliseconds(int minutes)
Converts the given number of minutes into milliseconds.
return minutes * MILLIS_PER_MINUTE;
intminutesToSamples(int sampleRate, int minutes)
Calculates how many samples minutes are with sampleRate.
return (minutes * 60) * sampleRate;
longMinutesToSeconds(long minutes)
Minutes To Seconds
return minutes * SECONDS_IN_A_MINUTE;
longminutesToSecs(long minutes)
minutes To Secs
return minutes * SECONDS_IN_MINUTE;
StringminutesToShortTime(int minutes)
minutes To Short Time
StringBuilder sb = new StringBuilder(5);
int h = minutes / 60;
int m = minutes % 60;
if (h < 10)
    sb.append('0');
sb.append(h);
sb.append(':');
if (m < 10)
...
StringminutesToString(Integer minutes)
minutes To String
assert (minutes != null);
int hours = minutes / 60;
minutes = minutes % 60;
return String.format(timeFormat, hours, minutes);
intminutesToTicks(double x)
D&D minutes to ticks (16 seconds per MC 'minute')
return secondsToTicks(x * SEC_PER_MIN);