Enumerationswift 6.0.1FoundationEssentials
Field
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
enum Field
enum Field
s20FoundationEssentials15AttributeScopesO0A10AttributesV09DateFieldC0O0G0O
What are these?9JYG1
import FoundationEssentials
@frozen enum DateFieldAttribute
@frozen enum AttributeScopes
struct FoundationAttributes
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
static let name: String
typealias Value = AttributeScopes.FoundationAttributes.DateFieldAttribute.Field
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 : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(from decoder: any Decoder) throws
func encode(to encoder: any Encoder) throws
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.