Calendar time convertation : <p>Something strange happens when I am trying to convert date to a milliseconds. Maybe someone can explain my this:</p>

<pre><code> Calendar calendar = Calendar.getInstance();
 calendar.set(2017, 9, 3, 4, 50);

 SimpleDateFormat formatter = new SimpleDateFormat("yyyy.MM.dd hh:mm:ss",
     Locale.getDefault());
 Log.i("tag", formatter.format(calendar.getTime()));
</code></pre>

<blockquote>
  <p>and logcat logs my out:</p>
  
  <p>I/tag: 2017.10.03 04:50:34</p>
</blockquote>

<p>Why months are different ?</p>
