Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / PLOTTING AND CALENDARS
CalendarMonth
A validated Gregorian month in years 1 through 9999.
Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.
Members on this page
Feature guides and release status
CalendarMonth
struct CalendarMonthConforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.
A validated Gregorian month in years 1 through 9999.
Source · CalendarDate.swift:14year
let year: IntA public field of this type. Its value type and mutability are shown in the declaration.
Source · CalendarDate.swift:15month
let month: IntA public field of this type. Its value type and mutability are shown in the declaration.
Source · CalendarDate.swift:16init(year:month:)
init(year: Int, month: Int) throwsCreates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (2)
year- Argument type and any default are shown in the declaration; see the behavior notes above.
month- Argument type and any default are shown in the declaration; see the behavior notes above.
dayCount
var dayCount: Int { get }A public field of this type. Its value type and mutability are shown in the declaration.
Source · CalendarDate.swift:25firstDay
var firstDay: CalendarDay { get }A public field of this type. Its value type and mutability are shown in the declaration.
Source · CalendarDate.swift:33