title: Round up the current time as nearest 30 min interval Obj c
body: <p>My Picker Settings:</p>
  
  <ul>
  <li>time mode only</li>
  <li>30 mins interval</li>
  <li><p>current time</p></li>
  <li><p>Get picker value(below code) after a button action:</p>
  
  <pre><code>//Begin time
  if(date_formate)
  date_formate=nil;
  
  date_formate=[[NSDateFormatter alloc] init];
  [date_formate setDateFormat:@"hh:mm a"];
  
   txtfldBeginTime.text=[date_formate stringFromDate:time_picker.date];
  </code></pre></li>
  </ul>
  
  <p>Problem:</p>
  
  <ul>
  <li><p>current time is 6:17 PM</p></li>
  <li><p>The picker starts and displaying from 6:00 PM.</p></li>
  <li>When get the picker value without any scroll in picker. It returns 6:17 PM.</li>
  <li>When get the picker value with some scroll in picker and set the time where its starts(6:00 PM). Then, it returns 6:00 PM as normal.</li>
  </ul>
  
  <p>Proposing:</p>
  
  <p>1.</p>
  
  <ul>
  <li>if the current time is above 5:30 and below 6:00 means, then the picker starts from 6:00.</li>
  <li><p>Otherwise, the current time is above 6:00 and below 6:30 means, then the picker starts from 6:30.</p>
  
  <ol start="2">
  <li>when get the picker value without any scroll, the return value should be initial value of picker. That is, if the picker starts from 6:30 means then the picker return value be 6:30.</li>
  </ol></li>
  </ul>