Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Use ICU for relative time formatting

Rewrite the DateUtils' relative time formatting APIs
(getRelativeTimeSpanString, getRelativeDateTimeString) to use ICU ones.
Two APIs that take withPreposition parameter are not changed. Because
(a) ICU doesn't provide functionality to format preposition; (b) They
are not really computing relative time but instead calling
formatDateRange() to get the absolute time/date string.

Bug: 19146457
Bug: 5252772
Change-Id: Iea8d699d63cc4438513910da66d038912e44fb8d
latest commit 67bfa0b083
Tao Bao authored
..
Failed to load latest commit information.
arrays.xml Update icons to vectors, fix preload theming & vector tinting
attrs.xml Merge "Add activated text colors, update Material preference header" …
attrs_manifest.xml Work on issue #17357238: Recents is often slow if not used in a while
bools.xml Revert Japanese special case fallback keys.
colors.xml Increase contrast for money permission
colors_holo.xml Add public attributes for TimePicker styling
colors_leanback.xml Tweak leanback form style
colors_legacy.xml Material theme
colors_material.xml Update theme colors for better contrast and de-blueing
config.xml am 7666c91: Merge "set autojoin associated scan frequency to 20 secon…
dimens.xml + correcting shadow visual appearance (b/17610926)
dimens_leanback.xml Add fragment animations to setup leanback theme
dimens_material.xml Fix bug #17521147 Settings activity looks terrible on Volantis
donottranslate-cldr.xml Remove obsolete 'numeric_date_template'.
donottranslate-maps.xml Move map center resources out of arrays.xml.
donottranslate-names.xml Moving contacts-specific strings to donottranslate files.
donottranslate.xml Make webview text encoding and keySystemUUID mapping and error page p…
donottranslate_material.xml Fix menu styling
ids.xml Add IDs for status and nav-bar backgrounds.
integers.xml Make the positive dialog button use accent color
public.xml Remove the default WebView text encoding resource entirely.
strings.xml Use ICU for relative time formatting
styles.xml Fix bug #17521147 Settings activity looks terrible on Volantis
styles_device_defaults.xml Clean up TimePicker and DatePicker styling
styles_holo.xml Fix AM/PM text i18n and clean up keyboard support in time picker
styles_leanback.xml Update text appearance in leanback setup
styles_material.xml Fix bug #17521147 Settings activity looks terrible on Volantis
styles_micro.xml Adding activity enter/exit animations for wearables
symbols.xml Use ICU for relative time formatting
themes.xml Add activated text colors, update Material preference header
themes_device_defaults.xml Clean up TimePicker and DatePicker styling
themes_holo.xml Add activated text colors, update Material preference header
themes_leanback.xml Have Activity Transitions activited by a new window attribute.
themes_material.xml Add activated text colors, update Material preference header
themes_micro.xml Adding activity enter/exit animations for wearables
Something went wrong with that request. Please try again.