formatted(_:referenceDate:)
Formats the subscription period using a format style that takes a duration as an input.
Declaration
func formatted<S>(_ format: S, referenceDate: Date = .now) -> S.FormatOutput where S : FormatStyle, S.FormatInput == DurationParameters
- format:
A format style that has a duration as an input.
- referenceDate:
The starting date of the subscription period. The default value is Now.