TimeUnit: toMinutes(long duration)
import java.util.concurrent.TimeUnit;
public class Main {
public static void main(String[] args) {
TimeUnit tu = TimeUnit.DAYS;
System.out.println(tu.toDays(1));
System.out.println(tu.toHours(1));
System.out.println(tu.toMinutes(1));
}
}