public LocalTimeStringConverter (DateTimeFormatter formatter, DateTimeFormatter parser)

Create a StringConverter for LocalTime values using the supplied formatter and parser, which are responsible for choosing the desired Locale.

For example, a fixed pattern can be used for converting both ways:

 String pattern = "HH:mm:ss";
 DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern);
 StringConverter converter =
     DateTimeStringConverter.getLocalTimeConverter(formatter, null);
 

Parameters:
formatter    An instance of DateTimeFormatter which will be used for formatting by the toString() method. If null then a default formatter will be used.
parser    An instance of DateTimeFormatter which will be used for parsing by the fromString() method. This can be identical to formatter. If null, then formatter will be used, and if that is also null, then a default parser will be used.