CPCWeek
public struct CPCWeek
Calendar unit that represents a week.
-
Declaration
Swift
public init(containing date: Date, calendar: Calendar)
-
Declaration
Swift
public typealias Element = CPCDay
-
Value that represents a current week.
Declaration
Swift
public static var current: CPCWeek { get } -
Value that represents next week.
Declaration
Swift
public static var next: CPCWeek { get } -
Value that represents previous week.
Declaration
Swift
public static var prev: CPCWeek { get } -
Week number in the year.
Declaration
Swift
public var weekNumber: Int { get } -
Value that represents a current week in the specified calendar.
Declaration
Swift
public static func current(using calendar: Calendar) -> CPCWeekParameters
calendarCalendar to use.
-
Value that represents next week in the specified calendar.
Declaration
Swift
public static func next(using calendar: Calendar) -> CPCWeekParameters
calendarCalendar to use.
-
Value that represents previous week in the specified calendar.
Declaration
Swift
public static func prev(using calendar: Calendar) -> CPCWeekParameters
calendarCalendar to use.
-
Create a new value, corresponding to a week in the future or past.
Declaration
Swift
public init(weeksSinceNow: Int)Parameters
weeksSinceNowDistance from current week in weeks.
View on GitHub
Install in Dash
CPCWeek Structure Reference