comparing time without date swift3
问题 I am using an API to get a list of times which is five times a day as string in (AM,PM) format without date, ("4:30 AM","1:00 PM","3:20: PM","6:40 PM","9:10 PM") what I am trying to do is to show the next time in the screen depends on the current time on the iPhone so if the time now is 5:00 PM the time should display on the screen is 6:40 PM how can I compare times in swift without including the dates because I tried to convert the list of times I have to Date type but unfortunately am