Package | Description |
---|---|
com.ibm.icu.text |
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
|
Modifier and Type | Method and Description |
---|---|
static RelativeDateTimeFormatter.RelativeDateTimeUnit |
RelativeDateTimeFormatter.RelativeDateTimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelativeDateTimeFormatter.RelativeDateTimeUnit[] |
RelativeDateTimeFormatter.RelativeDateTimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
String |
RelativeDateTimeFormatter.format(double offset,
RelativeDateTimeFormatter.RelativeDateTimeUnit unit)
Format a combination of RelativeDateTimeUnit and numeric offset
using a text style if possible, e.g.
|
String |
RelativeDateTimeFormatter.formatNumeric(double offset,
RelativeDateTimeFormatter.RelativeDateTimeUnit unit)
Format a combination of RelativeDateTimeUnit and numeric offset
using a numeric style, e.g. "1 week ago", "in 1 week",
"5 weeks ago", "in 5 weeks".
|
RelativeDateTimeFormatter.FormattedRelativeDateTime |
RelativeDateTimeFormatter.formatNumericToValue(double offset,
RelativeDateTimeFormatter.RelativeDateTimeUnit unit)
Format a combination of RelativeDateTimeUnit and numeric offset
using a numeric style, e.g. "1 week ago", "in 1 week",
"5 weeks ago", "in 5 weeks".
|
RelativeDateTimeFormatter.FormattedRelativeDateTime |
RelativeDateTimeFormatter.formatToValue(double offset,
RelativeDateTimeFormatter.RelativeDateTimeUnit unit)
Format a combination of RelativeDateTimeUnit and numeric offset
using a text style if possible, e.g.
|
Copyright © 2016 Unicode, Inc. and others.