Java Utililty Methods Minute Validate

List of utility methods to do Minute Validate

Description

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

Method

voidvalidateHoursAndMinutes(int hours, int minutes)
Checks that hour and minutes within conventional 24 hour clock bounds.
if ((minutes >= 60 || minutes < 0) || (hours >= 24 || hours < 0)) {
    throw new NumberFormatException();
voidvalidateMinute(int minute)
validate Minute
if (minute < 0 || minute > 59) {
    throw new IllegalArgumentException("Invalid minute (must be >= 0 and <= 59).");
StringvalueOfMinute(long time)
value Of Minute
long d = time / (24 * 60);
long h = (time % (24 * 60)) / 60;
long m = (time % (24 * 60)) % 60;
String value = d + "Basic_day" + ":" + h + "Basic_hour" + ":" + m + "Basic_min";
return value;