クラス
java.time.format.FormatStyleの使用
| パッケージ | 説明 |
|---|---|
| java.time.format |
日付と時間を出力し、解析するクラスを提供します。
|
-
java.time.formatでのFormatStyleの使用
FormatStyleを返すjava.time.formatのメソッド 修飾子と型 メソッド 説明 static FormatStyleFormatStyle. valueOf(String name)指定された名前を持つ、この型の列挙型定数を返します。static FormatStyle[]FormatStyle. values()この列挙型の定数を含む配列を、宣言されている順序で返します。FormatStyle型のパラメータを持つjava.time.formatのメソッド 修飾子と型 メソッド 説明 DateTimeFormatterBuilderDateTimeFormatterBuilder. appendLocalized(FormatStyle dateStyle, FormatStyle timeStyle)ローカライズされた日付/時間パターンをフォーマッタに追加します。static StringDateTimeFormatterBuilder. getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, Chronology chrono, Locale locale)ロケールおよび暦の日付および時間のスタイルの書式設定パターンを取得します。static DateTimeFormatterDateTimeFormatter. ofLocalizedDate(FormatStyle dateStyle)ISO暦に対するロケール固有の日付フォーマットを返します。static DateTimeFormatterDateTimeFormatter. ofLocalizedDateTime(FormatStyle dateTimeStyle)ISO暦に対するロケール固有の日付/時間フォーマッタを返します。static DateTimeFormatterDateTimeFormatter. ofLocalizedDateTime(FormatStyle dateStyle, FormatStyle timeStyle)ISO暦に対するロケール固有の日付と時間のフォーマットを返します。static DateTimeFormatterDateTimeFormatter. ofLocalizedTime(FormatStyle timeStyle)ISO暦に対するロケール固有の時間フォーマットを返します。