import datetime
hours = ['19:30', '20:10', '20:30', '21:00', '22:00']
now = datetime.datetime.strptime('20:18', '%H:%M')
min(hours, key=lambda t: abs(now - datetime.datetime.strptime(t, '%H:%M')))
Find the closest hour