Wondering how to format output of a localtime with two different longs: My goal here is to format the long minutes and long seconds with the until part
Example of desired output: 9:02 As in 9 minutes and 2 seconds
public static String getTimeUntilSomething() {
LocalTime currentTime = LocalTime.now();
long minutes = currentTime.until(currentTimeMore, ChronoUnit.MINUTES);
long seconds = currentTime.until(currentTimeMore, ChronoUnit.SECONDS);
String L = currentTime.format(DateTimeFormatter.ofPattern("m:ss"));
return L;
}