DateTimeFormatterCommonOptions
public final class DateTimeFormatterCommonOptions
Used to support common styles, similar to the ones defined in Closure / Material.
The names here are the same as the ones in ICU4J, as Closure / Material have three different naming conventions, sometimes even internally inconsistent. Will add mapping to the Material Design recommended date / time formats.
| See also | |
|---|---|
DateFormat |
Summary
Public fields |
|
|---|---|
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with abbreviated month and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with abbreviated month, weekday, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with hour and minute in 24-hour presentation. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with hour, minute, and second in 24-hour presentation. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with hour and minute, with the locale's preferred hour format (12 or 24). |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with hour, minute, and second, with the locale's preferred hour format (12 or 24). |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with minute and second. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with long month and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with month, weekday, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with numeric month and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with numeric month, weekday, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year and abbreviated month. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year, abbreviated month, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year, abbreviated month, weekday, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year and month. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year, month, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year, month, weekday, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year and numeric month. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year, numeric month, and day. |
static final @NonNull DateTimeFormatterSkeletonOptions |
Constant for date skeleton with year, numeric month, weekday, and day. |
Public constructors |
|---|
Public fields
ABBR_MONTH_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions ABBR_MONTH_DAY
Constant for date skeleton with abbreviated month and day. E.g. "Mar 27".
| See also | |
|---|---|
ABBR_MONTH_DAY |
ABBR_MONTH_WEEKDAY_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions ABBR_MONTH_WEEKDAY_DAY
Constant for date skeleton with abbreviated month, weekday, and day. E.g. "Sat, Mar 27".
| See also | |
|---|---|
ABBR_MONTH_WEEKDAY_DAY |
HOUR24_MINUTE
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR24_MINUTE
Constant for date skeleton with hour and minute in 24-hour presentation. E.g. "19:42". WARNING: Not user friendly (ignores user preferences) and not i18n friendly (ignoring locale customs)
| See also | |
|---|---|
HOUR24_MINUTE |
HOUR24_MINUTE_SECOND
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR24_MINUTE_SECOND
Constant for date skeleton with hour, minute, and second in 24-hour presentation. E.g. "19:42:57". WARNING: Not user friendly (ignores user preferences) and not i18n friendly (ignoring locale customs)
| See also | |
|---|---|
HOUR24_MINUTE_SECOND |
HOUR_MINUTE
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR_MINUTE
Constant for date skeleton with hour and minute, with the locale's preferred hour format (12 or 24). E.g. "7:42 PM".
| See also | |
|---|---|
HOUR_MINUTE |
HOUR_MINUTE_SECOND
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR_MINUTE_SECOND
Constant for date skeleton with hour, minute, and second, with the locale's preferred hour format (12 or 24). E.g. "7:42:57 PM".
| See also | |
|---|---|
HOUR_MINUTE_SECOND |
MINUTE_SECOND
public static final @NonNull DateTimeFormatterSkeletonOptions MINUTE_SECOND
Constant for date skeleton with minute and second. E.g. "42:57".
| See also | |
|---|---|
MINUTE_SECOND |
MONTH_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions MONTH_DAY
Constant for date skeleton with long month and day. E.g. "March 27".
| See also | |
|---|---|
MONTH_DAY |
MONTH_WEEKDAY_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions MONTH_WEEKDAY_DAY
Constant for date skeleton with month, weekday, and day. E.g. "Saturday, March 27".
| See also | |
|---|---|
MONTH_WEEKDAY_DAY |
NUM_MONTH_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions NUM_MONTH_DAY
Constant for date skeleton with numeric month and day. E.g. "3/27". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day, day-month or even month year.
| See also | |
|---|---|
NUM_MONTH_DAY |
NUM_MONTH_WEEKDAY_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions NUM_MONTH_WEEKDAY_DAY
Constant for date skeleton with numeric month, weekday, and day. E.g. "Sat, 3/27". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day, day-month or even month year.
| See also | |
|---|---|
NUM_MONTH_WEEKDAY_DAY |
YEAR_ABBR_MONTH
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_ABBR_MONTH
Constant for date skeleton with year and abbreviated month. E.g. "Mar 2021".
| See also | |
|---|---|
YEAR_ABBR_MONTH |
YEAR_ABBR_MONTH_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_ABBR_MONTH_DAY
Constant for date skeleton with year, abbreviated month, and day. E.g. "Mar 27, 2021".
| See also | |
|---|---|
YEAR_ABBR_MONTH_DAY |
YEAR_ABBR_MONTH_WEEKDAY_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_ABBR_MONTH_WEEKDAY_DAY
Constant for date skeleton with year, abbreviated month, weekday, and day. E.g. "Sat, Mar 27, 2021".
| See also | |
|---|---|
YEAR_ABBR_MONTH_WEEKDAY_DAY |
YEAR_MONTH
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_MONTH
Constant for date skeleton with year and month. E.g. "March 2021".
| See also | |
|---|---|
YEAR_MONTH |
YEAR_MONTH_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_MONTH_DAY
Constant for date skeleton with year, month, and day. E.g. "March 27, 2021".
| See also | |
|---|---|
YEAR_MONTH_DAY |
YEAR_MONTH_WEEKDAY_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_MONTH_WEEKDAY_DAY
Constant for date skeleton with year, month, weekday, and day. E.g. "Saturday, March 27, 2021".
| See also | |
|---|---|
YEAR_MONTH_WEEKDAY_DAY |
YEAR_NUM_MONTH
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_NUM_MONTH
Constant for date skeleton with year and numeric month. E.g. "3/2021".
| See also | |
|---|---|
YEAR_NUM_MONTH |
YEAR_NUM_MONTH_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_NUM_MONTH_DAY
Constant for date skeleton with year, numeric month, and day. E.g. "3/27/2021". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day or day-month (think 3/4/2021 vs 4/3/2021.).
| See also | |
|---|---|
YEAR_NUM_MONTH_DAY |
YEAR_NUM_MONTH_WEEKDAY_DAY
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_NUM_MONTH_WEEKDAY_DAY
Constant for date skeleton with year, numeric month, weekday, and day. E.g. "Sat, 3/27/2021". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day or day-month (think 3/4/2021 vs 4/3/2021.).
| See also | |
|---|---|
YEAR_NUM_MONTH_WEEKDAY_DAY |