summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-04-10 18:07:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-10 18:07:25 -0700
commitd54e116d0de783d6f4d527fe24a2ad7df920c081 (patch)
treed5b8684a7035a1b4423fef1669ae79a2054d1787 /luni
parent29c5d7e2dadeab52604872da1ab7bf74c62b2e48 (diff)
parent4ec69e8d26a1149a5844f6ca4721aea73edd8346 (diff)
downloadlibcore-d54e116d0de783d6f4d527fe24a2ad7df920c081.zip
libcore-d54e116d0de783d6f4d527fe24a2ad7df920c081.tar.gz
libcore-d54e116d0de783d6f4d527fe24a2ad7df920c081.tar.bz2
am 4ec69e8d: am a20919ef: am ec786a87: Fix Formatter documentation.
* commit '4ec69e8d26a1149a5844f6ca4721aea73edd8346': Fix Formatter documentation.
Diffstat (limited to 'luni')
-rw-r--r--luni/src/main/java/java/util/Formatter.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/luni/src/main/java/java/util/Formatter.java b/luni/src/main/java/java/util/Formatter.java
index 6ca8733..d6b772a 100644
--- a/luni/src/main/java/java/util/Formatter.java
+++ b/luni/src/main/java/java/util/Formatter.java
@@ -318,6 +318,7 @@ format("%6.0E", 123.456f);</td>
* <br>
* Calendar, Date, and Long (representing milliseconds past the epoch) are all acceptable
* as date/time arguments. Any other type is an error. The epoch is 1970-01-01 00:00:00 UTC.
+ * <font color="red">Use {@link java.text.SimpleDateFormat} instead.</font>
* </TD>
* </tr>
* <tr>
@@ -388,14 +389,14 @@ format("%6.0E", 123.456f);</td>
* </tr>
* <tr>
* <td width="5%">{@code tH}</td>
- * <td width="25%">24-hour hour of day (00-23).</td>
+ * <td width="25%">2-digit 24-hour hour of day (00-23).</td>
* <td width="30%">{@code format("%tH", cal);}</td>
* <td width="30%">{@code 16}</td>
* </tr>
* <tr>
* <td width="5%">{@code tI}</td>
- * <td width="25%">12-hour hour of day (01-12).</td>
- * <td width="30%">{@code format("%tH", cal);}</td>
+ * <td width="25%">2-digit 12-hour hour of day (01-12).</td>
+ * <td width="30%">{@code format("%tI", cal);}</td>
* <td width="30%">{@code 04}</td>
* </tr>
* <tr>
@@ -407,13 +408,13 @@ format("%6.0E", 123.456f);</td>
* <tr>
* <td width="5%">{@code tk}</td>
* <td width="25%">24-hour hour of day (0-23).</td>
- * <td width="30%">{@code format("%tH", cal);}</td>
+ * <td width="30%">{@code format("%tk", cal);}</td>
* <td width="30%">{@code 16}</td>
* </tr>
* <tr>
* <td width="5%">{@code tl}</td>
* <td width="25%">12-hour hour of day (1-12).</td>
- * <td width="30%">{@code format("%tH", cal);}</td>
+ * <td width="30%">{@code format("%tl", cal);}</td>
* <td width="30%">{@code 4}</td>
* </tr>
* <tr>