loom & weft
Made for Swift.

Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.

LOOM Unreleased (PR #2) / 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

Structure
struct CalendarMonth

Conforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.

A validated Gregorian month in years 1 through 9999.

Source · CalendarDate.swift:14

year

Instance Property
let year: Int

A public field of this type. Its value type and mutability are shown in the declaration.

Source · CalendarDate.swift:15

month

Instance Property
let month: Int

A public field of this type. Its value type and mutability are shown in the declaration.

Source · CalendarDate.swift:16

init(year:month:)

Initializer Throws
init(year: Int, month: Int) throws

Creates 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.
Source · CalendarDate.swift:18

dayCount

Instance Property
var dayCount: Int { get }

A public field of this type. Its value type and mutability are shown in the declaration.

Source · CalendarDate.swift:25

firstDay

Instance Property
var firstDay: CalendarDay { get }

A public field of this type. Its value type and mutability are shown in the declaration.

Source · CalendarDate.swift:33