public class InstantFormatter extends ObjectSE implements Formatter<InstantSE>
Instant
SE の Formatter
実装、インスタントに対する JSR-310 の解析ルールに従う(つまり、構成可能な DateTimeFormatter
SE を使用しない): デフォルトの ISO_INSTANT
形式と RFC_1123_DATE_TIME
(HTTP 日付ヘッダー値に一般的に使用されます)を受け入れます。Spring 4.3 以降。Instant.parse(java.lang.CharSequence)
SE, DateTimeFormatter.ISO_INSTANT
SE, DateTimeFormatter.RFC_1123_DATE_TIME
SEコンストラクターと説明 |
---|
InstantFormatter() |
修飾子と型 | メソッドと説明 |
---|---|
InstantSE | parse(StringSE text, LocaleSE locale) テキスト文字列を解析して T を生成します。 |
StringSE | print(InstantSE object, LocaleSE locale) 型 T のオブジェクトを表示用に出力します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public InstantSE parse(StringSE text, LocaleSE locale) throws ParseExceptionSE
Parser
Parser<InstantSE>
の parse
text
- テキスト文字列 locale
- 現在のユーザーロケール ParseExceptionSE
- java.text 解析ライブラリで解析例外が発生したとき