Skip to content

Commit ac737da

Browse files
committed
ICU-12865 Update API docs to reflect new features in ICU 54 and later :-)
1 parent e3e74bd commit ac737da

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

icu4c/source/i18n/unicode/reldatefmt.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,10 @@ class U_I18N_API FormattedRelativeDateTime : public UMemory, public FormattedVal
384384
* </pre>
385385
* </blockquote>
386386
* <p>
387-
* In the future, we may add more forms, such as abbreviated/short forms
388-
* (3 secs ago), and relative day periods ("yesterday afternoon"), etc.
387+
* The UDateRelativeDateTimeFormatterStyle parameter allows selection of
388+
* different length styles: LONG ("3 seconds ago"), SHORT ("3 sec. ago"),
389+
* NARROW ("3s ago"). In the future, we may add more forms, such as
390+
* relative day periods ("yesterday afternoon"), etc.
389391
*
390392
* The RelativeDateTimeFormatter class is not intended for public subclassing.
391393
*

icu4j/main/core/src/main/java/com/ibm/icu/text/RelativeDateTimeFormatter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@
7373
* </pre>
7474
* </blockquote>
7575
* <p>
76-
* In the future, we may add more forms, such as abbreviated/short forms
77-
* (3 secs ago), and relative day periods ("yesterday afternoon"), etc.
76+
* The Style parameter allows selection of different length styles:
77+
* LONG ("3 seconds ago"), SHORT ("3 sec. ago"), NARROW ("3s ago").
78+
* In the future, we may add more forms, such as relative day periods
79+
* ("yesterday afternoon"), etc.
7880
*
7981
* @stable ICU 53
8082
*/

0 commit comments

Comments
 (0)