Modifier and Type | Field and Description |
---|---|
private DateTimeFormatter |
formatter |
Constructor and Description |
---|
LocalTimeParser(DateTimeFormatter formatter)
Create a new DateTimeParser.
|
Modifier and Type | Method and Description |
---|---|
LocalTime |
parse(java.lang.String text,
java.util.Locale locale)
Parse a text String to produce a T.
|
public LocalTimeParser(DateTimeFormatter formatter)
formatter
- the Joda DateTimeFormatter instancepublic LocalTime parse(java.lang.String text, java.util.Locale locale) throws java.text.ParseException
Parser