value(forComponent:)
Returns the value for a given calendar unit.
Declaration
func value(forComponent unit: NSCalendar.Unit) -> IntParameters
Return Value
The value for the given calendar unit.
Discussion
This method allows for component values to be retrieved for an NSCalendar.Unit value.