Contents

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 == DateComponents

Parameters

  • value:

    A representation of a date. The type of the representation is specified by ParseStrategy.ParseInput.

  • strategy:

    The parse strategy to parse value whose ParseOutput is DateComponents.