title: android.text.format.DateFormat "HH" is not recognized like with java.text.SimpleDateFormat
body: <p>When I use the "HH" flag in <code>android.text.format.DateFormat</code>, it is interpreted as a literal "HH".  But when I use <code>java.text.SimpleDateFormat</code> it is interpreted as the 2 digit Hour.  Why are they different?</p>
  
  <p>I'm not looking for a working alternative (I already know I have to use <code>kk</code> instead of <code>HH</code>).  I'm just curious why "HH" isn't recognized.</p>
  
  <p>Java example:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      Calendar calendar = Calendar.getInstance();
  
      String dateJava = new java.text.SimpleDateFormat(
          "dd-MM-yyyy HH:mm:ss").format(calendar.getTime());
  
      String dateAndroid = android.text.format.DateFormat.format(
          "dd-MM-yyyy HH:mm:ss", calendar).toString();
  
      TextView tvAndroid = (TextView) findViewById(R.id.tvAndroid);
      TextView tvJava = (TextView) findViewById(R.id.tvJava);
  
      tvAndroid.setText("Android: " + dateAndroid);  //prints 26-05-2013 HH:36:34
      tvJava.setText("Java: " + dateJava);           //prints 26-05-2013 22:36:34
  }
  </code></pre>
  
  <p>Output is:</p>
  
  <pre><code>Android: 26-05-2013 HH:36:34 
  Java:    26-05-2013 22:36:34
  </code></pre>
  
  <p>I expect both to be <code>26-05-2013 22:36:34</code></p>
  
  <p>Does Android's DateFormat have a bug?</p>
  
  <p>Java's SimpleDateFormat accepts these:</p>
  
  <pre><code>H   Hour in day (0-23)      Number  0
  k   Hour in day (1-24)      Number  24
  K   Hour in am/pm (0-11)    Number  0
  h   Hour in am/pm (1-12)    Number  12
  </code></pre>
  
  <p>So it appears the Android developers decided to change the meaning of <code>k</code> and in their DateFormat function it is equivalent to the SimpleDateFormat <code>H</code> as they explicitly say in their <a href="http://developer.android.com/reference/android/text/format/DateFormat.html">documentation page</a>:</p>
  
  <pre><code>This constant was deprecated in API level 18. Use a literal 'H' (for 
  compatibility with SimpleDateFormat and Unicode) or 'k' (for compatibility 
  with Android releases up to and including Jelly Bean MR-1) instead. Note 
  that the two are incompatible. 
  </code></pre>
  
  <p>What is the reason for this?</p>