IslamicLeapYearPattern enum

The pattern of leap years to use when constructing an Islamic calendar.

The Islamic, or Hijri, calendar is a lunar calendar of 12 months, each of 29 or 30 days. The calendar can be defined in either observational or tabular terms; Time Machine implements a tabular calendar, where a pattern of leap years (in which the last month has an extra day) repeats every 30 years, according to one of the patterns within this enum.

While the patterns themselves are reasonably commonly documented (see e.g. Wikipedia) there is little standardization in terms of naming the patterns. I hope the current names do not cause offence to anyone; suggestions for better names would be welcome. ( ^^^ this is a note from upstream NodaTime -- so if this comes up, we need to get everyone involved)

CalendarSystem.getIslamicCalendar

Inheritance

Constructors

IslamicLeapYearPattern()
const

Values

base15 → const IslamicLeapYearPattern

A pattern of leap years in 2, 5, 7, 10, 13, 15, 18, 21, 24, 26 and 29. This pattern and Base16 are the most commonly used ones, and only differ in whether the 15th or 16th year is deemed leap.

base16 → const IslamicLeapYearPattern

A pattern of leap years in 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29. This pattern and Base15 are the most commonly used ones, and only differ in whether the 15th or 16th year is deemed leap. This is the pattern used by the BCL HijriCalendar.

indian → const IslamicLeapYearPattern

A pattern of leap years in 2, 5, 8, 10, 13, 16, 19, 21, 24, 27 and 29.

habashAlHasib → const IslamicLeapYearPattern

A pattern of leap years in 2, 5, 8, 11, 13, 16, 19, 21, 24, 27 and 30.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<IslamicLeapYearPattern>
A constant List of the values in this enum, in order of their declaration.