title: Android Milliseconds as of a time
body: <p>I have read all of the docs and there doesnt seem to be too much to really explains the date functions, or the lack there of.</p>
  
  <p>I am trying implement the AlarmManger which needs the  time in milliseconds (ms) for the trigger.  To test I took the current time and added 5 seconds and that was good.</p>
  
  <pre><code>// get a Calendar object with current time
   Calendar cal = Calendar.getInstance();
   // add 5 minutes to the calendar object
   cal.add(Calendar.SECOND, 5);
  </code></pre>
  
  <p>If I have a date and time how would I get the  ms for that time. </p>
  
  <p>Like "3/2/2011 08:15:00"</p>
  
  <p>How do I turn that into milliseconds?</p>