Instance Propertyswift 6.0.3FoundationEssentials
set
- iOS
- 8.0+
- macOS
- 10.10+
- tvOS
- 9.0+
- watchOS
- 2.0+
var set: Set<Calendar.Component> { get }
var set: Set<Calendar.Component> { get }
s20FoundationEssentials8CalendarV12ComponentSetV3setShyAC0D0OGvp
What are these?CZMN
import FoundationEssentials
struct ComponentSet
struct Calendar
Calendar
encapsulates information about systems of reckoning time in which the beginning, length, and divisions of a year are defined. It provides information about the calendar and support for calendrical computations such as determining the range of a given calendrical unit and adding units to a given absolute time.
@frozen struct Set<Element> where Element : Hashable
An unordered collection of unique elements.
enum Component
An enumeration for the various components of a calendar date.
init(_ components: Set<Calendar.Component>)
init(_ components: Calendar.Component...)
init(rawValue: UInt)
init(single component: Calendar.Component)
static let calendar: Calendar.ComponentSet
static let day: Calendar.ComponentSet
static let dayOfYear: Calendar.ComponentSet
static let era: Calendar.ComponentSet
static let hour: Calendar.ComponentSet
static let isLeapMonth: Calendar.ComponentSet
static let minute: Calendar.ComponentSet
static let month: Calendar.ComponentSet
static let nanosecond: Calendar.ComponentSet
static let quarter: Calendar.ComponentSet
static let second: Calendar.ComponentSet
static let timeZone: Calendar.ComponentSet
static let weekOfMonth: Calendar.ComponentSet
static let weekOfYear: Calendar.ComponentSet
static let weekday: Calendar.ComponentSet
static let weekdayOrdinal: Calendar.ComponentSet
static let year: Calendar.ComponentSet
static let yearForWeekOfYear: Calendar.ComponentSet
var count: Int { get }
var highestSetUnit: Calendar.Component? { get }
let rawValue: UInt