public final class LocalDateTimeParser extends java.lang.Object implements Parser<LocalDateTime>
DateTimeFormatter
を使用して Joda LocalDateTime
インスタンスを解析します。コンストラクターと説明 |
---|
LocalDateTimeParser(DateTimeFormatter formatter) 新しい DateTimeParser を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
LocalDateTime | parse(java.lang.String text, java.util.Locale locale) テキスト文字列を解析して T を生成します。 |
public LocalDateTimeParser(DateTimeFormatter formatter)
formatter
- Joda DateTimeFormatter インスタンス public LocalDateTime parse(java.lang.String text, java.util.Locale locale) throws java.text.ParseException
Parser
Parser<LocalDateTime>
の parse
text
- テキスト文字列 locale
- 現在のユーザーロケール java.text.ParseException
- java.text 解析ライブラリで解析例外が発生したとき