title: How to format time to 2 digit numbers?
body: <p>I couldn't find any specialized answers. 
  Here's the code:</p>
  
  <pre><code>        LocalDateTime t = LocalDateTime.now();
          System.out.println("[i][" + t.getHour() + ":" + t.getMinute()+ ":" +t.getSecond() + "] "
                  + usr + " typed: " + cmd);
  </code></pre>
  
  <p>The output now looks like this: </p>
  
  <pre><code>[i][15:8:4] XY typed: test
  </code></pre>
  
  <p>What I want is to format it to make it look like this:</p>
  
  <pre><code>[i][15:08:04] XY typed: test
  </code></pre>