title: Get first day of a specific month
body: <p>I know, there are plenty of similar questions, but my question is a bit more specific and complicated: </p>
  
  <p>I want to get the first day of month (and of the following month), from a specific month. </p>
  
  <p>My current code:</p>
  
  <pre><code>private long getFirstTime(Time inputTime) {
          Time t = new Time();
          t.set(inputTime);
          t.monthDay = 1;
          t.normalize(true);
  
          return t.toMillis(true);
  }
  
  private long getLastTime(Time inputTime) {
          Time t = new Time();
          t.set(inputTime);
          t.monthDay = 1;
          t.month++;
          t.normalize(true);
  
          return t.toMillis(true);
  }
  </code></pre>
  
  <p>The inputTime is always the time of a month in the future or past. </p>
  
  <p>Generated like this:</p>
  
  <pre><code>Time mTimeMinus = new Time();
              mTimeMinus.set(System.currentTimeMillis());
              mTimeMinus.month--;
              mTimeMinus.normalize(true);
  
  Time mTimePlus = new Time();
              mTimePlus.set(System.currentTimeMillis());
              mTimePlus.month++;
              mTimePlus.normalize(true);
  </code></pre>
  
  <p>Any ideas for a fix? </p>
  
  <hr>
  
  <p>Code in the question is working as intended, the problem was a different one! </p>