CPCMonth
public struct CPCMonth
Calendar unit that represents a month.
-
Declaration
Swift
@usableFromInline internal let calendarWrapper: CalendarWrapper
-
Declaration
Swift
@usableFromInline internal let backingValue: BackingStorage
-
Undocumented
Declaration
Swift
@usableFromInline internal let indicesCache: ContiguousArray<Int>
-
Undocumented
Declaration
Swift
internal typealias BackingStorage = __CPCMonthBackingStorage
-
Undocumented
See moreDeclaration
Swift
internal typealias BackingStorage = __CPCMonthBackingStorage
-
Declaration
Swift
static let symbolKeyPaths: [CPCMonth.Style : KeyPath<Calendar, [String]>]
-
Declaration
Swift
static let standaloneSymbolKeyPaths: [CPCMonth.Style : KeyPath<Calendar, [String]>]
-
Declaration
Swift
internal var unitOrdinalValue: Int { get }
-
Declaration
Swift
public init(containing date: Date, calendar: Calendar)
-
Declaration
Swift
public typealias Element = CPCWeek
-
Undocumented
Declaration
Swift
internal typealias UnitBackingType = BackingStorage
-
Declaration
Swift
internal static let representedUnit: Calendar.Component
-
Declaration
Swift
internal static let descriptionDateFormatTemplate: String
-
Declaration
Swift
internal static func indices(for value: BackingStorage, using calendar: Calendar) -> ContiguousArray<Int>
-
Declaration
Swift
internal init(backedBy value: BackingStorage, calendar: CalendarWrapper)
-
Undocumented
Declaration
Swift
internal func componentValue(of element: Element) -> Int
-
Value that represents a current month.
Declaration
Swift
public static var current: CPCMonth { get }
-
Value that represents a next month.
Declaration
Swift
public static var next: CPCMonth { get }
-
Value that represents a previous month.
Declaration
Swift
public static var prev: CPCMonth { get }
-
Era of the represented month’s year.
Declaration
Swift
public var era: Int { get }
-
Year of represented month.
Declaration
Swift
public var year: Int { get }
-
Month number of represented month.
Declaration
Swift
public var month: Int { get }
-
Year that contains represented month.
Declaration
Swift
public var containingYear: CPCYear { get }
-
Value that represents a current month in the specified calendar.
Declaration
Swift
public static func current(using calendar: Calendar) -> CPCMonth
Parameters
calendar
Calendar to use.
-
Value that represents next month in the specified calendar.
Declaration
Swift
public static func next(using calendar: Calendar) -> CPCMonth
Parameters
calendar
Calendar to use.
-
Value that represents previous month in the specified calendar.
Declaration
Swift
public static func prev(using calendar: Calendar) -> CPCMonth
Parameters
calendar
Calendar to use.
-
Create a new value, corresponding to a month in the future or past.
Declaration
Swift
public init(monthsSinceNow: Int)
Parameters
monthsSinceNow
Distance from current month in months.
-
Value that represents a current month in the specified calendar.
Declaration
Swift
internal static func current(using calendar: CalendarWrapper) -> CPCMonth
Parameters
calendar
Calendar to use.
-
Value that represents next month in the specified calendar.
Declaration
Swift
internal static func next(using calendar: CalendarWrapper) -> CPCMonth
Parameters
calendar
Calendar to use.
-
Value that represents previous month in the specified calendar.
Declaration
Swift
internal static func prev(using calendar: CalendarWrapper) -> CPCMonth
Parameters
calendar
Calendar to use.