nextDate(after:matchingHour:minute:second:options:)
Returns the next date after a given date that matches the given hour, minute, and second, component values.
Declaration
func nextDate(after date: Date, matchingHour hourValue: Int, minute minuteValue: Int, second secondValue: Int, options: NSCalendar.Options = []) -> Date?Parameters
- date:
The date for which to perform the calculation.
- hourValue:
The value for the hour component.
- minuteValue:
The value for the minute component.
- secondValue:
The value for the second component.
- options:
Options for the calculation. For possible values, see Options.
Return Value
A new NSDate object.