Package com.ethlo.time
Interface DateTimeParser
-
- All Known Implementing Classes:
ConfigurableDateTimeParser
,ITUParser
public interface DateTimeParser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DateTime
parse(java.lang.String text)
DateTime
parse(java.lang.String text, java.text.ParsePosition parsePosition)
Parse the text from the given position of the parsePosition
-
-
-
Method Detail
-
parse
DateTime parse(java.lang.String text, java.text.ParsePosition parsePosition) throws java.time.DateTimeException
Parse the text from the given position of the parsePosition- Parameters:
text
- The text to parseparsePosition
- The position in which to start- Returns:
- A DateTime holding the parsed data
- Throws:
java.time.DateTimeException
- If the data is not according to the format specified
-
parse
default DateTime parse(java.lang.String text) throws java.time.DateTimeException
- Throws:
java.time.DateTimeException
-
-