title: How to get the current hour with new Date-Time API in Java 8?
body: <p>Before Java 8 the common method was the <code>Calendar</code> API:</p>
  
  <pre><code>Calendar cal = Calendar.getInstance();
  int hour = cal.get(Calendar.HOUR_OF_DAY);
  </code></pre>
  
  <p>How can I get the current hour, but using the new <a href="http://docs.oracle.com/javase/tutorial/datetime/index.html" rel="noreferrer">Date-Time API</a> provided in <strong>Java 8</strong>?</p>