title: android: am pm format of alarm
body: <p>I am using the alarmmanger class set method for setting the alarm. i 
   takes the input from user through timepicker dialog for setting the 
   alarm.alarm work fine when i set specific hour and minutes but 
   application is not following the am/pm logic. mean if i set the alarm
   10:31 am while in system time is 10:30 pm then alarm invoke at 10:31  pm not at 10:30 am.anyone tell me whats the reason?</p>
  
  <pre><code>Calendar time = Calendar.getInstance();
          time.set(Calendar.HOUR, hourOfDay);
          time.set(Calendar.MINUTE, minute);
          time.set(Calendar.SECOND, 5);
          //time.set(Calendar.AM_PM);
  
  
  
          AlarmManager alarmMgr = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
          Intent intent = new Intent(this, AlarmReceiver.class);
          PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);
  
          alarmMgr.set(AlarmManager.RTC_WAKEUP,time.getTimeInMillis(), pendingIntent);
  </code></pre>