History log of /frameworks/base/core/java/android/text/format/DateFormat.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/text/format/DateFormat.java
0da89b76402816dade084166a97b1d352ae1f78b 25-Nov-2014 Jorim Jaggi <jjaggi@google.com> resolved conflicts for merge of f0fc23a1 to lmp-mr1-dev-plus-aosp

Change-Id: I8f1dbae2ecd14ae4e51a9e86eb6d36dd56a48be1
43395d677b431def5e6d8707297d590ba8f204a1 24-Nov-2014 Narayan Kamath <narayan@google.com> am 68e9af7b: am 1d84709c: Merge "Stop reading Settings.System.DATE_FORMAT."

* commit '68e9af7ba0b846768036f268d719f3d2a333ffca':
Stop reading Settings.System.DATE_FORMAT.
f91f06a5991451e4af3cf99eba791cb3009810d2 18-Nov-2014 Narayan Kamath <narayan@google.com> Stop reading Settings.System.DATE_FORMAT.

Also, move over DateFormat.getInstance(SHORT) instead of
LocaleData.shortDateFormat4 (which forces 4 digit years).
Based on an analysis of git history, there seems to be no
real motiviation for using 4 digit years.

If anyone in the platform complains loudly, we could look at
using a skeleton pattern instead of just replacing 'y' with 'yy'.

If third party apps are affected, we could add a targetSdkversion
based check and revert to the old behaviour for older targetSdks.

bug: 18388178
bug: 18322220
Change-Id: Ieab2b41691958a2e668d382c5a6b3d9aaf741ed2
/frameworks/base/core/java/android/text/format/DateFormat.java
9c4a707912da2c954b2d3d1311b8a691ded8aa16 21-Nov-2014 Selim Cinek <cinek@google.com> Fixed several time related states for secondary users

The 24 hour setting was not respected correctly. Also
fixed a bug where the next alarm would not display itself
in the QS panel.

Bug: 16239208
Change-Id: I89734f783912dead5831db49db53fba04dbf54ee
/frameworks/base/core/java/android/text/format/DateFormat.java
f2196a6ed5988f87d0e04cc30f0f82f7ea431095 04-Nov-2014 Narayan Kamath <narayan@google.com> am 6220810b: am 78a3b7d5: Merge "Remove deprecated DateFormat APIs." into lmp-mr1-dev

* commit '6220810b8167deee7bf2577f5136736473cbea1c':
Remove deprecated DateFormat APIs.
9d68b3c839046d6a0ef505ab020fc4219ea36170 22-Oct-2014 Narayan Kamath <narayan@google.com> Remove deprecated DateFormat APIs.

bug: 18074066
Change-Id: I99cef45105c9f25075c596cf4f52ec5573565596
/frameworks/base/core/java/android/text/format/DateFormat.java
f7d5e0a53e168f2acc17b098bdd4b927fa1b1d6c 23-Oct-2014 Elliott Hughes <enh@google.com> Migrate off timeFormat12 and timeFormat24.

libcore now offers a wider variety of 12-/24-hour time formats,
so be more specific about which one we want here.

(cherry-pick of 85f60d3a03b5b5d9a0e8b8a138eb85a6b53a1eca.)

Bug: 10361358
Change-Id: I846ab7a6f84cd49e876ad21e9366aff1600e0530
/frameworks/base/core/java/android/text/format/DateFormat.java
692356b7c392130b7f38f46a60570617c978ba75 04-Sep-2014 Kenny Guy <kennyguy@google.com> Revert "Ensure all RemoteViews use myUserId rather than context."

This reverts commit 5287e37687f117ac0b690100ad90842eff58d15a.
Reverting because only worked if settings cache had been populated
already.

Bug: 17302505
Change-Id: I4360606e9d9c6409951f0a02bd0b78c55085e0c6
/frameworks/base/core/java/android/text/format/DateFormat.java
879ebec4e2a12a802339549cb4fefa32b5368379 02-Sep-2014 Kenny Guy <kennyguy@google.com> Ensure all RemoteViews use myUserId rather than context.

Remote views may be inflated in another user so
explicitly use processes user id rather than the
user id of the context.

Bug: 17302505
Change-Id: I985c91745f03dd7e6b2ab6357600077664d8e6be
/frameworks/base/core/java/android/text/format/DateFormat.java
2c9d2005ecd592fd5b038a6379b5f174d9e65121 12-Jun-2014 Narayan Kamath <narayan@google.com> Track changes to libcore ICU apis.

All private APIs that earlier accepted Locale.toString
now accept Locale instances.

Change-Id: I80df88d0c928e921320b6545b1267adecefe64af
/frameworks/base/core/java/android/text/format/DateFormat.java
48fa06f34fe3098fd820b97d9d28c9f27f8591de 17-Jun-2013 Elliott Hughes <enh@google.com> am f6a67139: Merge "Correct Date format for el_GR, sv_SE and tr_TR locales"

* commit 'f6a671394ca3d269835d5f5b882b46f9539e9a96':
Correct Date format for el_GR, sv_SE and tr_TR locales
5ad2451f9fcce650b018af4bb3eb3252606d9150 16-Jun-2013 howardb <android@howardb.com> Correct Date format for el_GR, sv_SE and tr_TR locales

Amend DateFormat.getDateFormat to CLDR data from icu4c
instead of locale specific resource entries which are incorrect
for several locales.

No CTS tests are added as they require changing the locale which
is not currently possible.

Bug: https://code.google.com/p/android/issues/detail?id=56385

Change-Id: Ibd11c7fd9b595e19a3e2bf508e1585aa50067e03
Signed-off-by: howardb <android@howardb.com>
/frameworks/base/core/java/android/text/format/DateFormat.java
c2639e58fa5724c06a1d910ad76aebed647b4ba2 30-Apr-2013 Elliott Hughes <enh@google.com> am 0bb4c701: Merge "Use ICU for getDateFormatOrder."

* commit '0bb4c701bab0f69172417b7a511acb6bdfa052db':
Use ICU for getDateFormatOrder.
edd6f9e688698da4f6ba9da5e56a5546f9162200 30-Apr-2013 Elliott Hughes <enh@google.com> Use ICU for getDateFormatOrder.

Bug: 7207103
Change-Id: I680bb727cb74cd4b050f237f036d9e696201fc0b
/frameworks/base/core/java/android/text/format/DateFormat.java
031b581af2a14e9f957e511548b3da41152b2634 02-Apr-2013 Elliott Hughes <enh@google.com> Add DateFormat.getBestDateTimePattern.

Bug: 8283323
Change-Id: Id8d94456b93555d799229b7dd88fcbcf5c6bf7ff
/frameworks/base/core/java/android/text/format/DateFormat.java
f7c01e5a8a4e7e3032dd03a3705f6894312e9b5f 19-Mar-2013 Elliott Hughes <enh@google.com> am eda35cb7: am a8974d3f: Merge "Clean up (some of) our many clocks to use H instead of k."

* commit 'eda35cb7c5781a32b038f1ef76b8e50f26f9bfaf':
Clean up (some of) our many clocks to use H instead of k.
c3e513e51caad56a30186d9e20a814dcc53e72ef 19-Mar-2013 Elliott Hughes <enh@google.com> am c5c6d416: am 6317315e: Merge "Deliberately break DateFormat.format\'s formatting of \'k\' for compatibility."

* commit 'c5c6d4167b66c79652c5208a2dfe091a8c735e6d':
Deliberately break DateFormat.format's formatting of 'k' for compatibility.
cdafd37f3148dfc6f44f2e5de8b31adb6bf9e476 19-Mar-2013 Elliott Hughes <enh@google.com> Clean up (some of) our many clocks to use H instead of k.

Bug: 8359981
Change-Id: I3c0c38c2bf5adc4b5bdc11c3d10cf41dd8fb6462
/frameworks/base/core/java/android/text/format/DateFormat.java
fc55c2ba49957bb696b98d290964dc36f4827190 18-Mar-2013 Elliott Hughes <enh@google.com> Deliberately break DateFormat.format's formatting of 'k' for compatibility.

Bug: 8359981
Change-Id: I44ed816c644f94783c77952d544c5444b966868b
/frameworks/base/core/java/android/text/format/DateFormat.java
7b517a5c796f4c1120533c62686f7912ebfb2ef8 11-Mar-2013 Elliott Hughes <enh@google.com> am a45bafc2: am c9e0cd2a: Merge "Fix DateFormat k and h, and implement K and H for the first time."

* commit 'a45bafc2f025d2ef513f3e3dcac162ba6a95d575':
Fix DateFormat k and h, and implement K and H for the first time.
7a89f62877a03d249d9e7d0562058b973d747c49 11-Mar-2013 Elliott Hughes <enh@google.com> Fix DateFormat k and h, and implement K and H for the first time.

Bug: 8359981
Change-Id: I52ef937a77e9e28f2719c2ee6f59e4b74514f0b2
/frameworks/base/core/java/android/text/format/DateFormat.java
d6875e3334899be84b98d0fd32efff1f1b5775da 09-Mar-2013 Elliott Hughes <enh@google.com> am 2cb314eb: am e0cd3c19: Merge "Improve DateFormat.format."

* commit '2cb314ebc7bb6495a94f577dfb57f9e6c56033ef':
Improve DateFormat.format.
8326b9a429b63b680aa9af116c670ce674744d80 09-Mar-2013 Elliott Hughes <enh@google.com> Improve DateFormat.format.

Add support for the 'c' format character, required in many non-English locales.
Reimplement 'c' and 'E', and 'L' and 'M', so they correctly interpret 5-count
pattern characters.

Replace the old incorrect class documentation with a pointer to the
well-maintained libcore equivalent and the Unicode UTS to which these two
implementations are supposed to conform.

Deprecate the useless constants for pattern characters. No one sane is going
to write MONTH + MONTH + MONTH + MONTH instead of "MMMM".

Correct the documentation for getLongDateFormat and getMediumDateFormat.

Also fix DateUtils.getStandaloneMonthString for LENGTH_SHORTEST.

Tests are in https://android-review.googlesource.com/53291.

Change-Id: I4dda8b18070f05ccdc11c1f0a9381a9d233db4e8
/frameworks/base/core/java/android/text/format/DateFormat.java
5bd48b528e6477c2c3d318cb71cef861392b1b8a 15-Jan-2013 Elliott Hughes <enh@google.com> am 67ae48f3: am fc91d730: am cbfece82: Merge "Switch over to getting 12-/24-hour time formats from CLDR via icu4c."

* commit '67ae48f32545791fe0a0574f02bfe714e106074b':
Switch over to getting 12-/24-hour time formats from CLDR via icu4c.
4caba61ea0433099fc94e61221d02542c34e9e3a 15-Jan-2013 Elliott Hughes <enh@google.com> Switch over to getting 12-/24-hour time formats from CLDR via icu4c.

I removed the duplication in DateTimeView rather than fix that copy
of the code.

Bug: 7924970
Change-Id: I60c205d06ad3b50fd2f5d5fc432e4eb186f9c0e7
/frameworks/base/core/java/android/text/format/DateFormat.java
06c5f8a768bcd4f7b6441f7525bd5c639399fc76 04-Dec-2012 Jeff Sharkey <jsharkey@android.com> Examine widget hierarchy to find clocks.

When switching to a widget, examine its hierarchy to determine if it
contains TextClocks that show hour and minute for the local timezone.
If so, hide the status bar clock. Doesn't fix closing walls.

Bug: 7667638
Change-Id: I1e2c40345c9e5eb0193efd70838c7ca9f779190b
/frameworks/base/core/java/android/text/format/DateFormat.java
3d1728c03a0cd1aaed6bc81c97de27d62c771a6e 01-Nov-2012 Romain Guy <romainguy@google.com> A new clock widget to create lock screen appwidgets

This new widget replaces DigitalClock. It listens to all the correct
system events and offer the ability to customize the formatting
patterns in 12-hour and 24-hour modes. It also supports fixed
time zones to create world clocks.

One more step towards becoming ClockOS!

Change-Id: I677e5dfca8cd8c8d1f8c49e54d7507f4d1885bf4
/frameworks/base/core/java/android/text/format/DateFormat.java
34de3bc309fd9077cc1aa1e1af82652670fdb9df 15-Sep-2012 Elliott Hughes <enh@google.com> Fix date formatting for fa locales.

This adds support for standalone months (L versus M) and localized
digits.

Bug: 6811327
Change-Id: I4687a4c67605c31b155c0b8d44b3da6ed378fc82
/frameworks/base/core/java/android/text/format/DateFormat.java
03a8017d0fe3b55b69c4328aa0d27bd96a2f1360 24-Jul-2009 Eric Fischer <enf@google.com> Make the DatePicker respect the date format setting if the date is numeric.

In some locales, there are no abbreviated month names; the abbreviated
date formats are essentially numeric. If the user is in such a locale,
have the DatePicker respect the date format setting so that the order
of the fields will match other numeric-only dates.

In locales that have abbreviated month names, continue to use the order
that is normal in spelled-out dates.

And update the order in updateDate() so that the new order is reflected
if you change the order setting and immediately go to change the date
without leaving and returning to the Date & Time settings in between.

At the same time, change DateFormat.getDateFormatOrder() back to working
the way it did in cupcake (prioritizing the date order preference over
the locale), even though the DatePicker no longer calls the method.

Bug 1805085
/frameworks/base/core/java/android/text/format/DateFormat.java
328769582328192f8f361dcb56f2ad67ad00ae2c 12-Jun-2009 Eric Fischer <enf@google.com> Make the date format preference work again.

It is only used for numeric dates -- spelled-out dates have such a complex
variety of formats that they can only be meaningfully formatted from
locale strings.

In addition, the preference is left null when initializing, on the assumption
that the locale will still specify a more useful numeric format than we can
guess as part of a build-wide configuration.

But if the user has specified a format, the date will be formatted in the
order they asked for, with locale-appropriate punctuation substituted in.
/frameworks/base/core/java/android/text/format/DateFormat.java
af0e7a7394bf1e2596c46f81c3b0302a56daab96 11-Jun-2009 Eric Fischer <enf@google.com> Hook the 12- or 24-hour time format checkbox back up.

The format strings are newly generated from CLDR. The code is once again
the same as in cupcake: do the natural thing for the locale if the user
has never specified, but follow the checkbox if the user has ever set it.
/frameworks/base/core/java/android/text/format/DateFormat.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/DateFormat.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/DateFormat.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/DateFormat.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/text/format/DateFormat.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/frameworks/base/core/java/android/text/format/DateFormat.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/DateFormat.java