| 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 |
|---|---|
static TemporalFormatter<PlainTime> |
PlainTime.formatter(DisplayMode mode,
Locale locale)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing plain times.
|
static TemporalFormatter<PlainDate> |
PlainDate.formatter(DisplayMode mode,
Locale locale)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing plain dates.
|
static TemporalFormatter<Moment> |
Moment.formatter(DisplayMode mode,
Locale locale,
TZID tzid)
Creates a new formatter which uses the given display mode and locale
for formatting and parsing moments in given timezone.
|
static TemporalFormatter<PlainTime> |
PlainTime.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing plain times.
|
static TemporalFormatter<PlainDate> |
PlainDate.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing plain dates.
|
static TemporalFormatter<Moment> |
Moment.localFormatter(DisplayMode mode)
Creates a new formatter which uses the given display mode in the
default locale for formatting and parsing UTC-timestamps.
|
| Modifier and Type | Method and Description |
|---|---|
static DisplayMode |
DisplayMode.ofStyle(int style)
Converts a
DateFormat-constant. |
static DisplayMode |
DisplayMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisplayMode[] |
DisplayMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String |
FormatPatternProvider.getDatePattern(DisplayMode mode,
Locale locale)
Returns the localized date pattern suitable for formatting of objects
of type
PlainDate. |
String |
FormatPatternProvider.getDateTimePattern(DisplayMode dateMode,
DisplayMode timeMode,
Locale locale)
Returns the localized date-time pattern suitable for formatting of objects
of type
Moment or PlainTimestamp. |
String |
FormatPatternProvider.getTimePattern(DisplayMode mode,
Locale locale)
Returns the localized time pattern suitable for formatting of objects
of type
PlainTime. |
static String |
CalendarText.getTimestampPattern(DisplayMode dateMode,
DisplayMode timeMode,
Locale locale)
Deprecated.
Use
patternForTimestamp instead |
static String |
CalendarText.patternForDate(DisplayMode mode,
Locale locale)
Returns the localized date pattern suitable for formatting of objects
of type
PlainDate. |
static String |
CalendarText.patternForMoment(DisplayMode dateMode,
DisplayMode timeMode,
Locale locale)
Returns the localized date-time pattern suitable for formatting of objects
of type
Moment. |
static String |
CalendarText.patternForTime(DisplayMode mode,
Locale locale)
Returns the localized time pattern suitable for formatting of objects
of type
PlainTime. |
static String |
CalendarText.patternForTimestamp(DisplayMode dateMode,
DisplayMode timeMode,
Locale locale)
Yields a format pattern without any timezone symbols for plain timestamps.
|
Copyright © 2014–2017. All rights reserved.