public final class DefaultDateTimeFormatOptions extends DefaultBaseFormatOptions implements IsDefaultDateTimeFormatOptions
Modifier and Type | Field and Description |
---|---|
static IsDefaultDateTimeFormatOptions |
INSTANCE
Immutable instance with the number format defaults.
|
Modifier and Type | Method and Description |
---|---|
Calendar |
getCalendar()
Returns the calendar to use.
|
DateTimeStyle |
getDateStyle()
Returns the date formatting style to use when calling
AbstractFormat.format(java.lang.Object) . |
NumberItemStyle |
getDay()
Returns the representation of the Day.
|
StringItemStyle |
getDayPeriod()
Returns the way day periods should be expressed.
|
StringItemStyle |
getEra()
Returns the representation of the Era.
|
FormatMatcher |
getFormatMatcher()
Returns the format matching algorithm to use.
|
NumberItemStyle |
getHour()
Returns the representation of the Hour.
|
HourCycle |
getHourCycle()
Returns the hour cycle to use.
|
NumberItemStyle |
getMinute()
Returns the representation of the Minute.
|
MixedItemStyle |
getMonth()
Returns the representation of the Month.
|
NumberItemStyle |
getSecond()
Returns the representation of the Second.
|
DateTimeStyle |
getTimeStyle()
Returns the time formatting style to use when calling
AbstractFormat.format(java.lang.Object) . |
TimeZone |
getTimeZone()
Returns the time zone to use.
|
TimeZoneName |
getTimeZoneName()
Returns the representation of the time zone name.
|
StringItemStyle |
getWeekDay()
Returns the representation of the WeekDay.
|
NumberItemStyle |
getYear()
Returns the representation of the Year.
|
boolean |
isHour12()
Returns whether to use 12-hour time (as opposed to 24-hour time).
|
getLocaleMatcher, getNumberingSystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocaleMatcher, getNumberingSystem
public static final IsDefaultDateTimeFormatOptions INSTANCE
public DateTimeStyle getDateStyle()
IsDefaultDateTimeFormatOptions
AbstractFormat.format(java.lang.Object)
.getDateStyle
in interface IsDefaultDateTimeFormatOptions
public DateTimeStyle getTimeStyle()
IsDefaultDateTimeFormatOptions
AbstractFormat.format(java.lang.Object)
.getTimeStyle
in interface IsDefaultDateTimeFormatOptions
public Calendar getCalendar()
IsDefaultDateTimeFormatOptions
getCalendar
in interface IsDefaultDateTimeFormatOptions
public StringItemStyle getDayPeriod()
IsDefaultDateTimeFormatOptions
getDayPeriod
in interface IsDefaultDateTimeFormatOptions
public TimeZone getTimeZone()
IsDefaultDateTimeFormatOptions
getTimeZone
in interface IsDefaultDateTimeFormatOptions
public boolean isHour12()
IsDefaultDateTimeFormatOptions
isHour12
in interface IsDefaultDateTimeFormatOptions
public HourCycle getHourCycle()
IsDefaultDateTimeFormatOptions
getHourCycle
in interface IsDefaultDateTimeFormatOptions
public FormatMatcher getFormatMatcher()
IsDefaultDateTimeFormatOptions
getFormatMatcher
in interface IsDefaultDateTimeFormatOptions
public StringItemStyle getWeekDay()
IsDefaultDateTimeFormatOptions
getWeekDay
in interface IsDefaultDateTimeFormatOptions
public StringItemStyle getEra()
IsDefaultDateTimeFormatOptions
getEra
in interface IsDefaultDateTimeFormatOptions
public NumberItemStyle getYear()
IsDefaultDateTimeFormatOptions
getYear
in interface IsDefaultDateTimeFormatOptions
public MixedItemStyle getMonth()
IsDefaultDateTimeFormatOptions
getMonth
in interface IsDefaultDateTimeFormatOptions
public NumberItemStyle getDay()
IsDefaultDateTimeFormatOptions
getDay
in interface IsDefaultDateTimeFormatOptions
public NumberItemStyle getHour()
IsDefaultDateTimeFormatOptions
getHour
in interface IsDefaultDateTimeFormatOptions
public NumberItemStyle getMinute()
IsDefaultDateTimeFormatOptions
getMinute
in interface IsDefaultDateTimeFormatOptions
public NumberItemStyle getSecond()
IsDefaultDateTimeFormatOptions
getSecond
in interface IsDefaultDateTimeFormatOptions
public TimeZoneName getTimeZoneName()
IsDefaultDateTimeFormatOptions
getTimeZoneName
in interface IsDefaultDateTimeFormatOptions