title: Java Calendar date manipulation issue
body: <p>I am try to get the current date/time in in following format,</p>
  
  <pre><code>SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd G 'at' HH:mm:ss z"); 
  // should display something similar to  2001.07.04 AD at 12:08:56 PDT
  Calendar calendar = Calendar.getInstance();
  calendar.set(2009, 2, 4, 10, 22, 44);
  format.format( calendar.getTime() );
  System.out.println(calendar.getTime());
  </code></pre>
  
  <p>But it display as Wed Mar 04 10:22:44 IST 2009.</p>
  
  <p>The second question is I want to see the milliseconds value of the set time. </p>
  
  <pre><code>System.out.println(calendar.getTimeInMillis());
  </code></pre>
  
  <p>But it always return the current times milliseconds value and not the time I set earlier.</p>
  
  <p>What is I am missing here?</p>