| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.format |
Defines common interfaces for any format support of Time4J.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<ChronoDisplay,String> |
DayPeriod.approximate(TextWidth width,
OutputContext outputContext)
Represents a flexible day period (in the afternoon, at night etc).
|
ChronoFunction<ChronoDisplay,String> |
DayPeriod.fixed(TextWidth width,
OutputContext outputContext)
Represents a fixed day period (am / pm / midnight / noon).
|
String |
Weekday.getDisplayName(Locale locale,
TextWidth width,
OutputContext context)
Gets the description text dependent on the locale and style
parameters.
|
String |
Quarter.getDisplayName(Locale locale,
TextWidth width,
OutputContext context)
Gets the description text dependent on the locale and style
parameters.
|
String |
Month.getDisplayName(Locale locale,
TextWidth width,
OutputContext context)
Gets the description text dependent on the locale and style
parameters.
|
String |
Meridiem.getDisplayName(Locale locale,
TextWidth width,
OutputContext context)
Gets the description text dependent on the locale and style
parameters.
|
static Weekday |
Weekday.parse(CharSequence text,
Locale locale,
TextWidth width,
OutputContext context)
Tries to interprete given text as day-of-week.
|
static Quarter |
Quarter.parse(CharSequence text,
Locale locale,
TextWidth width,
OutputContext context)
Tries to interprete given text as quarter of year.
|
static Month |
Month.parse(CharSequence text,
Locale locale,
TextWidth width,
OutputContext context)
Tries to interprete given text as month.
|
static Meridiem |
Meridiem.parse(CharSequence text,
Locale locale,
TextWidth width,
OutputContext context)
Tries to interprete given text as AM/PM.
|
| Modifier and Type | Field and Description |
|---|---|
static AttributeKey<OutputContext> |
Attributes.OUTPUT_CONTEXT
Determines the output context to be used in formatting and
parsing.
|
| Modifier and Type | Method and Description |
|---|---|
static OutputContext |
OutputContext.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutputContext[] |
OutputContext.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
TextAccessor |
CalendarText.getLeapMonths(TextWidth textWidth,
OutputContext outputContext)
Yields an
Accessor for all months if a leap month
is relevant. |
TextAccessor |
CalendarText.getMeridiems(TextWidth textWidth,
OutputContext outputContext)
Yields an
Accessor for all am/pm-names. |
TextAccessor |
CalendarText.getQuarters(TextWidth textWidth,
OutputContext outputContext)
Yields an
Accessor for all quarter years. |
TextAccessor |
CalendarText.getStdMonths(TextWidth textWidth,
OutputContext outputContext)
Yields an
Accessor for all standard months. |
TextAccessor |
CalendarText.getWeekdays(TextWidth textWidth,
OutputContext outputContext)
Yields an
Accessor for all weekday names. |
default String[] |
TextProvider.meridiems(String calendarType,
Locale locale,
TextWidth textWidth,
OutputContext outputContext)
|
String[] |
TextProvider.months(String calendarType,
Locale locale,
TextWidth textWidth,
OutputContext outputContext,
boolean leapForm)
|
String[] |
TextProvider.quarters(String calendarType,
Locale locale,
TextWidth textWidth,
OutputContext outputContext)
|
String[] |
TextProvider.weekdays(String calendarType,
Locale locale,
TextWidth textWidth,
OutputContext outputContext)
|
Copyright © 2014–2017. All rights reserved.