vendredi 26 novembre 2021

Is there a way to do 24-hour format and 60-minute format in Java?

if(ExcessTimeHours >= 24) {
    ExcessTimeHours = 0;
}
if(ExcessTimeMin >= 60) {
    ExcessTimeMin = 0;
    ExcessTimeHours ++;
}

Aucun commentaire:

Enregistrer un commentaire