YearForWeekOfYear
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct YearForWeekOfYear
struct YearForWeekOfYear
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV013YearForWeekOfH0V
What are these?1JA00
import FoundationInternationalization
import FoundationEssentials
struct Symbol
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
struct CyclicYear
struct Day
struct DayOfYear
struct DayPeriod
struct Era
struct Hour
struct Minute
struct Month
struct Quarter
struct Second
struct SecondFraction
struct StandaloneMonth
struct StandaloneQuarter
struct StandaloneWeekday
struct TimeZone
struct VerbatimHour
struct Week
struct Weekday
struct Year
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static 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 let omitted: Date.FormatStyle.Symbol.YearForWeekOfYear
The option for not including the symbol in the formatted output.
static var twoDigits: Date.FormatStyle.Symbol.YearForWeekOfYear { get }
Two low-order digits. Padded or truncated if necessary. For example, 02
, 20
, 01
, 17
, 73
.
static func padded(_ length: Int) -> Date.FormatStyle.Symbol.YearForWeekOfYear
Three or more digits. Padded if necessary. For example, 002
, 020
, 201
, 2017
, 20173
.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.