Structure
Date.FormatStyle.Symbol.YearForWeekOfYear
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
A type that specifies the format for a year in week-of-year calendars when you parse a string with a date format string.
struct YearForWeekOfYear
Topics
Type Properties
static var defaultDigits: Date.FormatStyle.Symbol.YearForWeekOfYearMinimum number of digits that shows the full year in “Week of Year”-based calendars. For example,2,20,201,2017,20173.static let omitted: Date.FormatStyle.Symbol.YearForWeekOfYearThe option for not including the symbol in the formatted output.static var twoDigits: Date.FormatStyle.Symbol.YearForWeekOfYearTwo low-order digits. Padded or truncated if necessary. For example,02,20,01,17,73.
Type Methods
static func padded(Int) -> Date.FormatStyle.Symbol.YearForWeekOfYearThree or more digits. Padded if necessary. For example,002,020,201,2017,20173.
Relationships
Conforms To
Swift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype