setValue(_:for:)
Set the value of one of the properties, using an enumeration value instead of a property name.
Declaration
mutating func setValue(_ value: Int?, for component: Calendar.Component)Discussion
The calendar and timeZone and isLeapMonth properties cannot be set by this method.