Uses of Enum
com.ibm.icu.text.RelativeDateTimeFormatter.RelativeDateTimeUnit
Packages that use RelativeDateTimeFormatter.RelativeDateTimeUnit
Package
Description
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.RelativeDateTimeUnitModifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.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.RelativeDateTimeUnitModifier and TypeMethodDescriptionRelativeDateTimeFormatter.format
(double offset, RelativeDateTimeFormatter.RelativeDateTimeUnit unit) Format a combination of RelativeDateTimeUnit and numeric offset using a text style if possible, e.g.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.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.formatToValue
(double offset, RelativeDateTimeFormatter.RelativeDateTimeUnit unit) Format a combination of RelativeDateTimeUnit and numeric offset using a text style if possible, e.g.