9ccf13cd6b7c840105fbcd6b2a8bd61d4e634653 |
|
19-Sep-2012 |
Elliott Hughes <enh@google.com> |
Fix formatDateRange month names for Farsi. This removes the LLLs seen in Calendar and Settings, for example. Bug: 6811327 Change-Id: I87c2ab9ee8d897171ce7ca4fe06cfa8b11d36536
/frameworks/base/core/java/android/text/format/DateUtils.java
|
315a7c0335fb54beced23b1703c10563ce02ee82 |
|
18-Sep-2012 |
Roozbeh Pournader <roozbeh@google.com> |
Use proper digits in formatElapsedTime and format3339 Use getZeroDigit() instead of a hard-coded '0' for formatting times using formatElapsedTime, so locales with different digits like Arabic and Persian could display the elapsed time properly. This is visible in Settings' list of running apps. Also changed android.text.format.Time's format3339 method to always use ASCII digits, irrespective of the locale. Change-Id: I731c96c21b3712ec347d9526e4ec3fe884dec276
/frameworks/base/core/java/android/text/format/DateUtils.java
|
c3ff72f5bd5896ad2584e0cc0582cbd2ad8191f2 |
|
15-Aug-2012 |
Elliott Hughes <enh@google.com> |
Use icu4c for CLDR "yesterday", "today", and "tomorrow" strings. (cherry-pick of 47a0539ecaf7d7a15008704bd89f748aebf85d47.) Conflicts: core/res/res/values/public.xml Bug: 6811501 Change-Id: Ifb2e030a9fda85a7f664feac812b63e67780e68f
/frameworks/base/core/java/android/text/format/DateUtils.java
|
08153ee01e6aa67061f628bc3fed66c6400dfd1c |
|
07-Aug-2012 |
Elliott Hughes <enh@google.com> |
Switch DateUtils and Time over to using the CLDR for all week and month names. (cherry-pick of 99c406e42ba154584070ca7ec100e8be7ff8a800.) Conflicts: core/res/res/values-fa/donottranslate-cldr.xml core/res/res/values/public.xml Bug: 6811501 Change-Id: I2ad9608ae34804e02c6b0271197e96611df12b0a
/frameworks/base/core/java/android/text/format/DateUtils.java
|
4af85345e798c37ab026e93a1ae250d8bca4fc40 |
|
26-Jul-2012 |
Elliott Hughes <enh@google.com> |
Use ICU's CLDR data for "AM" and "PM" strings. This brings DateUtils and Time in sync with bionic, icu, WebKit, DateFormatSymbols, Formatter, and SimpleDateFormat. And specifically means that DateUtils now knows how to say "AM" and "PM" in Japanese. Bug: 6719054 (cherry-pick of b12b61a88a029730b1f2b006ff914c9c719f3942.) Conflicts: core/res/res/values/public.xml Change-Id: Ic1a811621a0ec338abd77458ac2046577f87c1e4
/frameworks/base/core/java/android/text/format/DateUtils.java
|
d3c01012d8d329e541214e8207272ab5cc9ca004 |
|
29-Aug-2012 |
Elliott Hughes <enh@google.com> |
Deprecate those parts of DateUtils the documentation says not to use. Applications using these fields and methods are just asking for i18n bugs. Also @deprecate two int[]s that were never meant to be public. Change-Id: I29b3a1c0c663fe344d2567df6ed3bb537270b3b7
/frameworks/base/core/java/android/text/format/DateUtils.java
|
ca3363775e03e0f90bdf111d3e5c54b3ab16df57 |
|
27-Aug-2012 |
Steve Pomeroy <steve@staticfree.info> |
Fixes relative time formatting issue for dates in future All variations of getRelativeTimeSpanString() now properly handle dates that are in the future. Prior, the version used by getRelativeDateTimeString() would occasionally show the time instead of a date when the future date was the same weekday as the current weekday. This resulted in the time output being duplicated, eg.: "11:23, 11:23" Change-Id: If20972a6942cce792fa233437f94dedfb71379f3 Signed-off-by: Steve Pomeroy <steve@staticfree.info>
/frameworks/base/core/java/android/text/format/DateUtils.java
|
4cf8a3914aa365fefc6c231c48075ecc5a096a65 |
|
23-Nov-2011 |
Owen Lin <owenlin@google.com> |
am 85c38af1: am 8bb56180: Merge "Fix 5654631. It forgot to consider the year in formatDateRange." into ics-mr1 * commit '85c38af1d47e288775052cd188e3f014fa40e8a2': Fix 5654631. It forgot to consider the year in formatDateRange.
|
b193e35ed131769e6c98b2752635065489198aeb |
|
22-Nov-2011 |
Owen Lin <owenlin@google.com> |
Fix 5654631. It forgot to consider the year in formatDateRange. Change-Id: I494e3ecc7a2e7c418ed61930ffd7311338c11783 fix: 5654631
/frameworks/base/core/java/android/text/format/DateUtils.java
|
99a64f4b1d2519b71558fdc62721686445865b60 |
|
11-Nov-2011 |
Jesse Wilson <jessewilson@google.com> |
Document our potentially suprising behavior on date ranges ending at midnight. Bug: http://code.google.com/p/android/issues/detail?id=18512 Change-Id: I968ca1cfcef79273ee856624a640d56b038b96be
/frameworks/base/core/java/android/text/format/DateUtils.java
|
25d8b05fb77e8ee755aacd27c1c2d3b237537b7a |
|
22-Feb-2011 |
Jozef BABJAK <jozef.babjak@gmail.com> |
Ensuring thread-safe usage of DateFormat. DateFormat is inherently unsafe for multithreaded use. This patch adds proper synchronization. The 'sLock' is re-used. To avoid two consecutive lockings, locked version of initFormatStrings() method is created and used where appropriate, i.e. in original method AND in added synchronized block. Change-Id: Id3c34613623e743e703aadb2342aa788679dda8a
/frameworks/base/core/java/android/text/format/DateUtils.java
|
c4f628a1ba359926cf53ed7652d9abba6ea29123 |
|
08-Sep-2010 |
Erik <roboerik@android.com> |
am c0b4f6d3: Merge "Adds a time zone parameter to formatDateRange" into gingerbread Merge commit 'c0b4f6d30d962d75125628317b5f5ea622531dfe' into gingerbread-plus-aosp * commit 'c0b4f6d30d962d75125628317b5f5ea622531dfe': Adds a time zone parameter to formatDateRange
|
577ec9eb3a661de96a2cbe9ec918eda082fb7659 |
|
02-Sep-2010 |
Erik <roboerik@android.com> |
Adds a time zone parameter to formatDateRange For a critical feature request in Calendar we need the ability to format a date range in a time zone other than the local tz. This adds a new method signature to formatDateRange to allow for a tz to be specified and maintains the old behavior if the parameter is not used. Also deprecates the FORMAT_UTC flag. Change-Id: I16b3e939760ec86c954b51a318d01b7bbf86acc9
/frameworks/base/core/java/android/text/format/DateUtils.java
|
f1f33c4eb2ded794c74285d8a036073ae5419f25 |
|
18-Jun-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: If7ae0c5629d1b3c540cacfa517425c2e6b5822d1
|
6a84af0949b341593b4b25ed9bb365bd60ff1254 |
|
29-Mar-2010 |
David Sobreira Marques <dpsmarques@gmail.com> |
Fixing counting the number of days in call log screen. Counting the number of days in call log screen when a call was made/received within a week is not correct. Issue 3132: Call Log Reporting Wrong Change-Id: I99c3cb40267b4b5938ccc4225993b7aac7e2d018 Signed-off-by: David Sobreira Marques <dpsmarques@gmail.com>
/frameworks/base/core/java/android/text/format/DateUtils.java
|
a53bbe4033f1e9fc4c371d51ba1ef58588f867eb |
|
01-Mar-2010 |
Ken Shirriff <kens@google.com> |
Remove DateException and obsolete DateUtils functions. These functions are deprecated and no longer used.
/frameworks/base/core/java/android/text/format/DateUtils.java
|
becfc9de9e18ef216c2b537cd2829f1d2d55404f |
|
30-Jun-2009 |
Michael Chan <mchan@android.com> |
Added a Formatter parameter to DateUtils.formatDateRange DateUtils.formatDateRange is using String.format which isn't efficient for formatting large number of strings. I have added the Formatter parameter which allows the caller to reuse the formatter of subsequent calls for faster performance.
/frameworks/base/core/java/android/text/format/DateUtils.java
|
5669ce59aad19f17e1e89913e7483fb93b8aa0cf |
|
18-Jun-2009 |
Eric Fischer <enf@google.com> |
Work around the Czech lack of abbreviated month names. Make the date formats that want abbreviated month names use either the full name or a numeric format.
/frameworks/base/core/java/android/text/format/DateUtils.java
|
84c863d9af1270a2ccd2ccd2b8c1a753826dfe6d |
|
10-Jun-2009 |
Eric Fischer <enf@google.com> |
Fix some 12- vs 24-hour problems in the FormatDateRange strings. Use a resource instead of a hardcoded string for the 24-hour format since it is not exactly the same in every locale. Make sure the 12-hour format is actually for a 12-hour clock, even in locales where this is not a normal thing to do. In the cap_ampm version, do not have it try to capitalize "am" and "pm" if these are non-ASCII strings, since strftime() doesn't know about Unicode and will mess it up. Add a comment so that people don't think the YEAR_IN_MILLIS constant is actually the length of any real year.
/frameworks/base/core/java/android/text/format/DateUtils.java
|
5bd644caf73e76750feef1a82b8817d32f5367fc |
|
13-May-2009 |
Eric Fischer <enf@google.com> |
Start using CLDR for some date-and-time strings and formats. Use java.text.DateFormat where possible, since that is already using the CLDR data for the things it supports. Remove an unused date format object from DatePickerDialog. Add a new method for getting the standalone month names from applications, although @hidden for now because it is an API change. Pass the standalone month names down to native code in Time so that tztime's strftime() can use them. And then the bulk of the change: replace all the names for the months and the days of the week, and AM and PM, and yesterday, today, and tomorrow, with strings from CLDR. And replace several of the date format strings with ones derived from CLDR, but reformatted to use strftime() style instead of SimpleDateFormat style. All these resource changes go into new donottranslate-cldr.xml files and are removed from strings.xml so that they aren't part of the normal translation process and the translators don't have to bother with them (and risk messing them up).
/frameworks/base/core/java/android/text/format/DateUtils.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/format/DateUtils.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/format/DateUtils.java
|
076357b8567458d4b6dfdcf839ef751634cd2bfb |
|
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/text/format/DateUtils.java
|
3dec7d563a2f3e1eb967ce2054a00b6620e3558c |
|
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/text/format/DateUtils.java
|
b798689749c64baba81f02e10cf2157c747d6b46 |
|
10-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/text/format/DateUtils.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/text/format/DateUtils.java
|