FormatStyle
class FormatStyle
| kotlin.Any | ||
| ↳ | kotlin.Enum<java.time.format.FormatStyle> | |
| ↳ | java.time.format.FormatStyle | |
Enumeration of the style of a localized date, time or date-time formatter.
These styles are used when obtaining a date-time style from configuration. See DateTimeFormatter and DateTimeFormatterBuilder for usage.
Summary
| Enum values | |
|---|---|
|
Full text style, with the most detail. |
|
|
Long text style, with lots of detail. |
|
|
Medium text style, with some detail. |
|
|
Short text style, typically numeric. |
|
Enum values
FULL
enum val FULL : FormatStyle
Full text style, with the most detail. For example, the format might be 'Tuesday, April 12, 1952 AD' or '3:30:42pm PST'.
LONG
enum val LONG : FormatStyle
Long text style, with lots of detail. For example, the format might be 'January 12, 1952'.
MEDIUM
enum val MEDIUM : FormatStyle
Medium text style, with some detail. For example, the format might be 'Jan 12, 1952'.
SHORT
enum val SHORT : FormatStyle
Short text style, typically numeric. For example, the format might be '12.13.52' or '3:30pm'.