title: How to know if Locale is using 12 or 24 hours format?
body: <p>I'm trying to know if, from the Locale, I have to use the 24 or the 12 format.</p>
  
  <p>I found this:</p>
  
  <pre><code>if (android.text.format.DateFormat.is24HourFormat(getApplicationContext()))
  </code></pre>
  
  <p>But this <strong>returns a boolean according to the system, not to the Locale</strong>. This means that if the user use english for the app but has a phone using the 24hours format, it will return true...</p>
  
  <p>How can I get a boolean telling me if the format to use is, or not, 24hours? I'm not using Joda. Thanks in advance.</p>
  
  <p><strong>EDIT</strong> as it seems that some people think that's a duplicate, I already read the posts you provided as a source for the duplicate flag. It was only solved with approximated workarounds or method providing a date, most of the time the current one, even if it's in the corresponding format.</p>
  
  <p>As you can guess, if I'm asking for a way to know whether I should use the 12 hours format or not according to the Locale, it means that I don't need the date or anything, that I already have, but a confirmation about the format I have to use.</p>