Foundation · IOS API REFERENCE
Date.FormatStyle.Symbol.YearForWeekOfYear
struct · iOS 15.0+ · SDK 27.1
struct YearForWeekOfYear
A type that specifies the format for a year in week-of-year calendars when you parse a string with a date format string.
Members (4)
get · iOS 15.0+defaultDigits
TypeScriptstatic get defaultDigits(): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declarationstatic var defaultDigits: Date.FormatStyle.Symbol.YearForWeekOfYear { get }
Minimum number of digits that shows the full year in "Week of Year"-based calendars.
For example, `2`, `20`, `201`, `2017`, `20173`.
static · iOS 15.0+padded
TypeScriptstatic padded(length: number): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declarationstatic func padded(_ length: Int) -> Date.FormatStyle.Symbol.YearForWeekOfYear
Three or more digits. Padded if necessary.
For example, `002`, `020`, `201`, `2017`, `20173`.
get · iOS 18.0+omitted
TypeScriptstatic get omitted(): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declarationstatic let omitted: Date.FormatStyle.Symbol.YearForWeekOfYear
The option for not including the symbol in the formatted output.
get · iOS 15.0+twoDigits
TypeScriptstatic get twoDigits(): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declarationstatic var twoDigits: Date.FormatStyle.Symbol.YearForWeekOfYear { get }
Two low-order digits. Padded or truncated if necessary.
For example, `02`, `20`, `01`, `17`, `73`.
Skipped declarations
No declarations were skipped in this snapshot.
All Foundation types →