The first weekday of the calendar.
SDKs
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 7.1+
Framework
- Foundation
Declaration
var firstWeekday: Int { get set }
The first weekday of the calendar.
SDKs
Framework
var firstWeekday: Int { get set }
var identifier: Calendar .Identifier
The identifier of the calendar.
var locale: Locale?
The locale of the calendar.
var minimum Days In First Week: Int
The number of minimum days in the first week.
var time Zone: Time Zone
The time zone of the calendar.
func maximum Range(of: Calendar .Component)
The maximum range limits of the values that a given component can take on.
func minimum Range(of: Calendar .Component)
Returns the minimum range limits of the values that a given component can take on.
func ordinality(of: Calendar .Component, in: Calendar .Component, for: Date)
Returns, for a given absolute time, the ordinal number of a smaller calendar component (such as a day) within a specified larger calendar component (such as a week).
func range(of: Calendar .Component, in: Calendar .Component, for: Date)
Returns the range of absolute time values that a smaller calendar component (such as a day) can take on in a larger calendar component (such as a month) that includes a specified absolute time.