Creates a new date calculated with the given time.
- iOS 8.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
The hour value.
The minute value.
The second value.
The date to use to perform the calculation.
Options for the calculation. For possible values, see
NSDate instance representing the date calculated by setting the given hour, minute, and second, to a given time. If no such time exists for the specified components, the next available date is returned, which may be on a different calendar day.
You can use this method to calculate a date at a different time of a particular calendar day.