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 |
---|---|
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 quantity,
RelativeDateTimeFormatter.Direction direction,
RelativeDateTimeFormatter.RelativeUnit unit)
Formats a relative date with a quantity such as "in 5 days" or
"3 months ago".
|
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.
|
RelativeDateTimeFormatter.FormattedRelativeDateTime |
RelativeDateTimeFormatter.formatToValue(RelativeDateTimeFormatter.Direction direction,
RelativeDateTimeFormatter.AbsoluteUnit unit)
Formats a relative date without a quantity.
|
Copyright © 2016 Unicode, Inc. and others.