How can I get a Date object that matches a given time in a given time zone?
For example, I want to get the Date that represents the next 3AM CST.
I thought of this, but I'm not sure if it's the best way (if it even works at all). I also don't know if it generates the next soonest date that matches the given data components. The Apple docs are a little unclear on this.
let calendar = Calendar(identifier: .gregorian)
let timeZone = TimeZone(abbreviation: "CDT")
let dateComponents = DateComponents(calendar: calendar, timeZone: timeZone, hour: 3)
let date3AM = calendar.date(from: dateComponents)
In fact, there is an easier way.