EnumerationFoundation5.9.0
Field
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
enum Field
Citizens in Foundation
Conformances
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Members
case amPM
case day
case dayOfYear
case era
case hour
case minute
case month
case quarter
case relatedGregorianYear
For non-Gregorian calendars, this corresponds to the extended Gregorian year in which the calendar’s year begins.
case second
case secondFraction
case timeZone
case weekOfMonth
case weekOfYear
case weekday
case weekdayOrdinal
The ordinal position of the weekday unit within the month unit. For example,
2
in “2nd Wednesday in July”case year
init(from: Decoder
) throws func encode(to: Encoder
) throws