| 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 |
|---|---|
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 |
PrettyTime.print(Duration<?> duration,
TextWidth width)
Formats the total given duration.
|
String |
PrettyTime.print(Duration<?> duration,
TextWidth width,
boolean printZero,
int maxLength)
Formats given duration.
|
String |
PrettyTime.print(long amount,
CalendarUnit unit,
TextWidth width)
Formats given duration in calendar units.
|
String |
PrettyTime.print(long amount,
ClockUnit unit,
TextWidth width)
Formats given duration in clock units.
|
String |
PrettyTime.print(TemporalAmount threeten,
TextWidth width)
Short-cut for
print(Duration.from(threeten), width). |
String |
PrettyTime.print(TemporalAmount threeten,
TextWidth width,
boolean printZero,
int maxLength)
Short-cut for
print(Duration.from(threeten), width, printZero, maxLength). |
| Modifier and Type | Field and Description |
|---|---|
static AttributeKey<TextWidth> |
Attributes.TEXT_WIDTH
Determines the text width to be used in formatting and parsing.
|
| Modifier and Type | Method and Description |
|---|---|
static TextWidth |
TextWidth.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextWidth[] |
TextWidth.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
TextProvider.eras(String calendarType,
Locale locale,
TextWidth textWidth)
|
String |
UnitPatternProvider.getDayPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of days.
|
TextAccessor |
CalendarText.getEras(TextWidth textWidth)
Yields an
Accessor for all era names. |
String |
UnitPatternProvider.getHourPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of hours.
|
TextAccessor |
CalendarText.getLeapMonths(TextWidth textWidth,
OutputContext outputContext)
Yields an
Accessor for all months if a leap month
is relevant. |
String |
UnitPatternProvider.getListPattern(Locale lang,
TextWidth width,
int size)
Constructs a localized list pattern suitable for the use in
MessageFormat.format(String, Object[]). |
TextAccessor |
CalendarText.getMeridiems(TextWidth textWidth)
Yields an
Accessor for all am/pm-names. |
String |
UnitPatternProvider.getMicroPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of microseconds.
|
String |
UnitPatternProvider.getMilliPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of milliseconds.
|
String |
UnitPatternProvider.getMinutePattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of minutes.
|
String |
UnitPatternProvider.getMonthPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of months.
|
String |
UnitPatternProvider.getNanoPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of nanoseconds.
|
TextAccessor |
CalendarText.getQuarters(TextWidth textWidth,
OutputContext outputContext)
Yields an
Accessor for all quarter years. |
String |
UnitPatternProvider.getSecondPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of seconds.
|
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. |
String |
UnitPatternProvider.getWeekPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of weeks.
|
String |
UnitPatternProvider.getYearPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of years.
|
String[] |
TextProvider.meridiems(String calendarType,
Locale locale,
TextWidth textWidth)
|
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–2015. All rights reserved.