init(_:strategy:)

Creates a new DateComponents by parsing the given string representation.

Declaration

init<T, Value>(_ value: Value, strategy: T) throws where T : ParseStrategy, Value : StringProtocol, T.ParseInput == String, T.ParseOutput == DateComponents