public class DateTimeFormatter extends Object
| Constructor and Description |
|---|
DateTimeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static Date |
lenientParse(Label label,
String dateTime,
int lineNumber) |
static Date |
parse(Label label,
String dateTime,
int lineNumber)
Parses a date/time string into a Java
Date. |
public static Date parse(Label label, String dateTime, int lineNumber) throws LabelParserException
Date. Throws error exceptions
with respect to a designated label, if there are parse errors.label - the label in which the date/time string appearsdateTime - the date/time string from the labellineNumber - the line number within the label where the date/time string
appearsLabelParserException - if there are any parse errorspublic static Date lenientParse(Label label, String dateTime, int lineNumber) throws LabelParserException
LabelParserExceptionCopyright © 2019. All rights reserved.