title: Java Calendar Hour of Day Returning 12 Hour Format
body: <p>In the Java docs, <code>Calendar.HOUR</code> is supposed to return the hour in the 12 hour format, and <code>Calendar.HOUR_OF_DAY</code> is supposed to return the hour in the 24 hour format, but both of these are returning in the 12 hour format. </p>
  
  <p>My Code:</p>
  
  <pre><code>Calendar rightNow = Calendar.getInstance();
  int hour = rightNow.get(Calendar.HOUR_OF_DAY);
  System.out.println("hour: " + hour);
  </code></pre>
  
  <p>There is a question that is similar to mine already, but there's is for a specific time and I'm attempting to do this with the current time. That question is here <a href="https://stackoverflow.com/questions/4847716/java-hour-and-hour-of-day-both-returning-12-hr-time">java HOUR and HOUR_OF_DAY both returning 12-hr time</a></p>
  
  <hr>
  
  <p><strong>EDIT:</strong></p>
  
  <p>If it matters, this is happening within Eclipse on Windows, within cmd.exe on Windows, and Terminal on Ubuntu.</p>
  
  <hr>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>Now I feel dumb... I didn't realize that I had multiple instances of calling the current time, and I was looking at the wrong one, which was HOUR_OF_DAY, but the one I was seeing in the console were being posted by just HOUR... Thanks for the help in the comments and the edit of my own post that led me to realize my mistake</p>