Need to find the nearest time baser on Current time
<p>I want to find the nearest time from an array with the comparison  of current time.(i.e) if the current time is 10:00 am in this case there is an array it have 9:00am,9:50am,9:30am.
from this i want to get the 9:50am. How can i achieve this? and i don't want to change the index value of the object in the array.</p>
