| 构造器和说明 |
|---|
DateTimeParser(DateTimeFormatter formatter)
Create a new DateTimeParser.
|
public DateTimeParser(DateTimeFormatter formatter)
formatter - the Joda DateTimeFormatter instancepublic DateTime parse(String text, Locale locale) throws ParseException
Parserparse 在接口中 Parser<DateTime>text - the text stringlocale - the current user localeParseException - when a parse exception occurs in a java.text parsing library