Uses of Class
com.ibm.icu.text.RelativeDateTimeFormatter.RelativeDateTimeUnit
-
Packages that use RelativeDateTimeFormatter.RelativeDateTimeUnit 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. -
-
Uses of RelativeDateTimeFormatter.RelativeDateTimeUnit in com.ibm.icu.text
Methods in com.ibm.icu.text that return RelativeDateTimeFormatter.RelativeDateTimeUnit Modifier and Type Method Description static RelativeDateTimeFormatter.RelativeDateTimeUnit
RelativeDateTimeFormatter.RelativeDateTimeUnit. valueOf(java.lang.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.Methods in com.ibm.icu.text with parameters of type RelativeDateTimeFormatter.RelativeDateTimeUnit Modifier and Type Method Description java.lang.String
RelativeDateTimeFormatter. format(double offset, RelativeDateTimeFormatter.RelativeDateTimeUnit unit)
Format a combination of RelativeDateTimeUnit and numeric offset using a text style if possible, e.g.java.lang.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.
-