setValue(_:forComponent:)
Sets a value for a given calendar unit.
Declaration
func setValue(_ value: Int, forComponent unit: NSCalendar.Unit)Parameters
Discussion
This method allows for component values to be set for an NSCalendar.Unit value.
Sets a value for a given calendar unit.
func setValue(_ value: Int, forComponent unit: NSCalendar.Unit)This method allows for component values to be set for an NSCalendar.Unit value.