Answer the question
In order to leave comments, you need to log in
How to add missing zeros to time?
LocalDateTime criticalPercentsStart;
LocalDateTime criticalPercentsFinish;
/* <***> */
final var fmt = DateTimeFormatter.ofPattern("H:m:s");
System.out.print(fmt.format(criticalPercentsStart));
System.out.print(" ");
System.out.print(fmt.format(criticalPercentsFinish));
16:47:2 16:48:52
16:47:02 16:48:52
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question