CPCDay
public struct CPCDay
Calendar unit that represents a single day.
-
Declaration
Swift
internal let calendarWrapper: CalendarWrapper -
Declaration
Swift
internal let backingValue: BackingStorage -
Declaration
Swift
internal init(backedBy value: BackingStorage, calendar: CalendarWrapper)
-
Undocumented
Declaration
Swift
internal typealias BackingStorage = __CPCDayBackingStorage
-
Undocumented
See moreDeclaration
Swift
internal typealias BackingStorage = __CPCDayBackingStorage
-
Declaration
Swift
public init(containing date: Date, calendar: Calendar)
-
Declaration
Swift
internal static let representedUnit: Calendar.Component -
Declaration
Swift
internal static let descriptionDateFormatTemplate: String
-
Value that represents a current day.
Declaration
Swift
public static var today: CPCDay { get } -
Value that represents yesterday.
Declaration
Swift
public static var yesterday: CPCDay { get } -
Value that represents tomorrow.
Declaration
Swift
public static var tomorrow: CPCDay { get } -
Era of the represented month’s year.
Declaration
Swift
public var era: Int { get } -
Year of represented day.
Declaration
Swift
public var year: Int { get } -
Month of represented day.
Declaration
Swift
public var month: Int { get } -
Week number of represented day.
Declaration
Swift
public var week: Int { get } -
This day’s number.
Declaration
Swift
public var day: Int { get } -
Year that contains represented day.
Declaration
Swift
public var containingYear: CPCYear { get } -
Month that contains represented day.
Declaration
Swift
public var containingMonth: CPCMonth { get } -
Week that contains represented day.
Declaration
Swift
public var containingWeek: CPCWeek { get } -
Value that represents a current day in the specified calendar.
Declaration
Swift
public static func today(using calendar: Calendar) -> CPCDayParameters
calendarCalendar to use.
-
Value that represents yesterday in the specified calendar.
Declaration
Swift
public static func yesterday(using calendar: Calendar) -> CPCDayParameters
calendarCalendar to use.
-
Value that represents tomorrow in the specified calendar.
Declaration
Swift
public static func tomorrow(using calendar: Calendar) -> CPCDayParameters
calendarCalendar to use.
-
Create a new value, corresponding to a day in the future or past.
Declaration
Swift
public init(daysSinceNow: Int)Parameters
daysSinceNowDistance from today in days.
-
Value that represents a current day in the specified calendar.
Declaration
Swift
internal static func today(using calendar: CalendarWrapper) -> CPCDayParameters
calendarCalendar to use.
-
Value that represents yesterday in the specified calendar.
Declaration
Swift
internal static func yesterday(using calendar: CalendarWrapper) -> CPCDayParameters
calendarCalendar to use.
-
Value that represents tomorrow in the specified calendar.
Declaration
Swift
internal static func tomorrow(using calendar: CalendarWrapper) -> CPCDayParameters
calendarCalendar to use.
View on GitHub
Install in Dash
CPCDay Structure Reference