title: how to add time in current time
body: <p>I'm quite confused about this one.</p>
  
  <p>I want to grab, current time, than according to condition, I want to add the required time, to the current time.
  for example.</p>
  
  <pre><code>current time  = 06:47:10 
  //or should i hv to change this format to "2011-03-26 06:47:10  GMT"
  
   if(a= 1 and b= min ) 
    { //add 1 min to
    current time 
    } 
    else if(a= 1 and b= hour) 
    { //add 1
     hour to current time 
    } 
   else if(a= 1 and b=week )  
   { //add 1
   week to current time  
   }
  </code></pre>
  
  <p>Just need to add the output of the above condition to current time.</p>
  
  <p>Please guide me with this.</p>
  
  <p>Regards</p>