Contents

extended(minimumLength:)

Returns a custom format style that portrays the year of the calendar system, encompassing all supra-year fields.

Declaration

static func extended(minimumLength: Int = 1) -> Date.FormatStyle.Symbol.Year

Parameters

  • minimumLength:

    The minimum length to display the full year.

Return Value

A custom year format style that portrays the year of the calendar system with the provided minimum length.

Discussion

The default length is the minimum needed to show the full year.

See Also

Modifying a Year