I have a question when it comes to pairing my Local Time to String in order to import a csv file. The local time in the csv file is in the following format: "1:20:32" - > (hour, minute, second). Well, I've done the following:
LocalTime duracion = LocalTime.parse(tipo, DateTimeFormatter.ofPattern("HH:mm:ss"));
And so the exception jumps me because logically it can not read the 0 in front.
My question is: How can I accept the time without the 0 in front? Since in my file all the local time fields come without 0 in front of the time when it only has one digit (0-9) that hour.