title: What is the meaning of "%d:%02d" in `printf`?
body: <p>I have written the following code to convert hours into minutes. I got some help from the internet but I'm not 100% sure what "%d:%02d" means?</p>
  
  <pre><code>package time;
  
  public class TimeAssignment {
  
      public static void main(String[] args) {
          // This program will convert hours into minutes
          int time = 120;
          int hours = time / 60; 
          int minutes = time % 60;
          System.out.printf("%d:%02d", hours, minutes);
      }
  
  }
  </code></pre>