I can find how to get if a date is between a range, but I cant seem how to create a date at a specific time.
What would be the simplest way to see if [NSDate date] is be
Updated for Swift 3.0
let hour = Calendar.current.component(.hour, from: Date()) if hour >= 0 && hour < 12 { print("Good Morning") } else if hour >= 12 && hour < 17 { print("Good Afternoon") } else if hour >= 17 { print("Good Evening") }