init(_:strategy:)
Creates a new DateComponents by parsing the given representation.
Declaration
init<T>(_ value: T.ParseInput, strategy: T) throws where T : ParseStrategy, T.ParseOutput == DateComponentsParameters
- value:
A representation of a date. The type of the representation is specified by
ParseStrategy.ParseInput. - strategy:
The parse strategy to parse
valuewhoseParseOutputisDateComponents.