Of the Duration class in the new JSR 310 date API (java.time package) available in Java 8 and later, the javadoc says :
This class models a quantity o
Remove Hourse then get minutes
long hours = attendanceDuration.toHours(); long minutes = attendanceDuration.minusHours(hours).toMinutes();