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

intminutesToTicks(int minutes)
Converts units of time given in real world minutes into game ticks There are 20 ticks per second so ticks = (minutes * 60) * 20
return (minutes * 60) * 20;
StringminutesToTime(int inTime)
Convert a time code in minutes to a time String
if (inTime < 0) {
    return "";
int min = inTime % 60;
inTime /= 60;
int hour = inTime;
String H = ("00" + Integer.toString(hour));
H = H.substring(H.length() - 2);
...
longminuteToMillis(long minute)
minute To Millis
if (minute < 0L) {
    return 0L;
return minute * 60000L;
StringminuteToTime(int minute)
minute To Time
int hour = minute / 60;
boolean pm = false;
if (hour >= 12) {
    hour -= 12;
    pm = true;
if (hour == 0) {
    hour = 12;
...
booleanonMinute(int minute)
Used to check if the current minutes is on the time multiple of the given variable
return minutes() % minute == 0;