Week
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct Week
struct Week
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV4WeekV
What are these?71T30
import FoundationEssentials
import FoundationInternationalization
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 Weekday
struct Year
struct YearForWeekOfYear
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.Week { get }
Numeric week of year. For example, 8
, 27
.
static let omitted: Date.FormatStyle.Symbol.Week
The option for not including the symbol in the formatted output.
static var twoDigits: Date.FormatStyle.Symbol.Week { get }
Two-digit numeric week of year, zero padded as necessary. For example, 08
, 27
.
static var weekOfMonth: Date.FormatStyle.Symbol.Week { get }
One-digit numeric week of month, starting from 1. For example, 1
.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.