I have array with times like below
"00:00",
"01:25",
"02:00",
"02:35",
"04:35",
"05:00",
"06:00",
"07:00",
"09:00",
"16:30",
"17:30",
"18:00",
"18:30",
"19:30",
"21:30",
"22:00",
"22:30",
"23:00"
how get index of object which time near to current time?
You can get the time difference like this
do that for all your hours/minutes and take the minimum absolute time interval.