title: Convert integer dates/times to unix timestamp in Java?
body: <p>This mainly applies to android, but could be used in Java. I have these listeners:</p>
  
  <pre><code>int year, month, day, hour, minute;
  // the callback received when the user "sets" the date in the dialog
  private DatePickerDialog.OnDateSetListener mDateSetListener =
          new DatePickerDialog.OnDateSetListener() {
  
              public void onDateSet(DatePicker view, int year, 
                                    int monthOfYear, int dayOfMonth) {
                  year = year;
                  month = monthOfYear;
                  day = dayOfMonth;
              }
          };
  // the callback received when the user "sets" the time in the dialog
  private TimePickerDialog.OnTimeSetListener mTimeSetListener =
      new TimePickerDialog.OnTimeSetListener() {
          public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
              hour = hourOfDay;
              minute = minute;
          }
      };
  </code></pre>
  
  <p>How could I convert <code>int year, month, day, hour, minute;</code> to a unix timestamp? Is this possible without the <code>Date</code> class?</p>