Interface IsDefaultDateTimeFormatOptions
-
- All Superinterfaces:
IsDefaultBaseFormatOptions
- All Known Implementing Classes:
DateTimeFormatOptions
,DefaultDateTimeFormatOptions
public interface IsDefaultDateTimeFormatOptions extends IsDefaultBaseFormatOptions
Interface to define the date time format options for internationalization.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Calendar
getCalendar()
Returns the calendar to use.DateTimeStyle
getDateStyle()
Returns the date formatting style to use when callingAbstractFormat.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 callingAbstractFormat.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).-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultBaseFormatOptions
getLocaleMatcher, getNumberingSystem
-
-
-
-
Method Detail
-
getDateStyle
DateTimeStyle getDateStyle()
Returns the date formatting style to use when callingAbstractFormat.format(java.lang.Object)
.- Returns:
- the date formatting style
-
getTimeStyle
DateTimeStyle getTimeStyle()
Returns the time formatting style to use when callingAbstractFormat.format(java.lang.Object)
.- Returns:
- the time formatting style
-
getCalendar
Calendar getCalendar()
Returns the calendar to use.- Returns:
- the calendar to use
-
getDayPeriod
StringItemStyle getDayPeriod()
Returns the way day periods should be expressed.- Returns:
- the way day periods should be expressed
-
getTimeZone
TimeZone getTimeZone()
Returns the time zone to use.- Returns:
- the time zone to use
-
isHour12
boolean isHour12()
Returns whether to use 12-hour time (as opposed to 24-hour time).- Returns:
- whether to use 12-hour time (as opposed to 24-hour time)
-
getHourCycle
HourCycle getHourCycle()
Returns the hour cycle to use.- Returns:
- the hour cycle to use
-
getFormatMatcher
FormatMatcher getFormatMatcher()
Returns the format matching algorithm to use.- Returns:
- the format matching algorithm to use
-
getWeekDay
StringItemStyle getWeekDay()
Returns the representation of the WeekDay.- Returns:
- the representation of the WeekDay
-
getEra
StringItemStyle getEra()
Returns the representation of the Era.- Returns:
- the representation of the Era
-
getYear
NumberItemStyle getYear()
Returns the representation of the Year.- Returns:
- the representation of the Year
-
getMonth
MixedItemStyle getMonth()
Returns the representation of the Month.- Returns:
- the representation of the Month
-
getDay
NumberItemStyle getDay()
Returns the representation of the Day.- Returns:
- the representation of the Day
-
getHour
NumberItemStyle getHour()
Returns the representation of the Hour.- Returns:
- the representation of the Hour
-
getMinute
NumberItemStyle getMinute()
Returns the representation of the Minute.- Returns:
- the representation of the Minute
-
getSecond
NumberItemStyle getSecond()
Returns the representation of the Second.- Returns:
- the representation of the Second
-
getTimeZoneName
TimeZoneName getTimeZoneName()
Returns the representation of the time zone name.- Returns:
- the representation of the time zone name
-
-