@DeprecatedSE public final class DateTimeParser extends ObjectSE implements Parser<DateTime>
DateTimeFormatter
を使用して Joda DateTime
インスタンスを解析します。コンストラクターと説明 |
---|
DateTimeParser(DateTimeFormatter formatter) 使用すべきではありません。 新しい DateTimeParser を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
DateTime | parse(StringSE text, LocaleSE locale) 使用すべきではありません。 テキスト文字列を解析して T を生成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public DateTimeParser(DateTimeFormatter formatter)
formatter
- Joda DateTimeFormatter インスタンス public DateTime parse(StringSE text, LocaleSE locale) throws ParseExceptionSE
Parser
Parser<DateTime>
の parse
text
- テキスト文字列 locale
- 現在のユーザーロケール ParseExceptionSE
- java.text 解析ライブラリで解析例外が発生したとき