title: How to get the currently time only
body: <p>Wha would be the equivalent in Java for this C# code:  </p>
  
  <pre><code>DateTime.Now.TimeOfDay //This
  DateTime.Now.ToString("h:mm:ss tt") //Or This  
  </code></pre>
  
  <p>I'm finding a lot of things, some of them may be deprecated because it has 2 years or more, others are really complex for such a simple thing, and I'm sure there is a simpler way to do so.  </p>
  
  <p>I tried:  </p>
  
  <pre><code>import java.util.Date;
  
  Date d = new Date();
  System.out.println(d);   //Result:  Wed Oct 28 00:46:29 2015  
  
  If I try:  
  
  System.out.println(d.getTime()); //Result:  1446000426285
  </code></pre>
  
  <p>I need to get only time: <code>H:mm:ss</code></p>