CalendarSystem MembersNoda Time

[This is preliminary documentation and is subject to change.]

The CalendarSystem type exposes the following members.
Methods

  NameDescription
Public methodStatic memberForId
Fetches a calendar system by its unique identifier. This provides full round-tripping of a calendar system. It is not guaranteed that calling this method twice with the same identifier will return identical references, but the references objects will be equal.
Public methodGetAbsoluteYear
Returns the "absolute year" (the one used throughout most of the API, without respect to eras) from a year-of-era and an era.
Public methodGetDaysInMonth
Returns the number of days in the given month within the given year.
Public methodGetDaysInYear
Returns the number of days in the given year.
Public methodStatic memberGetHebrewCalendar
Returns a Hebrew calendar, as described at http://en.wikipedia.org/wiki/Hebrew_calendar. This is a purely mathematical calculator, applied proleptically to the period where the real calendar was observational.
Public methodStatic memberGetIslamicCalendar
Returns an Islamic, or Hijri, calendar system.
Public methodGetMaxYearOfEra
Returns the maximum valid year-of-era in the given era.
Public methodGetMinYearOfEra
Returns the minimum valid year-of-era in the given era.
Public methodGetMonthsInYear
Returns the maximum valid month (inclusive) within this calendar in the given year.
Public methodIsLeapYear
Returns whether or not the given year is a leap year in this calendar.
Public methodToString
Converts this calendar system to text by simply returning its unique ID.
(Overrides OnlineObject ToString .)
Back to Top
Properties

  NameDescription
Public propertyStatic memberCoptic
Returns a Coptic calendar system, which defines every fourth year as leap, much like the Julian calendar. The year is broken down into 12 months, each 30 days in length. An extra period at the end of the year is either 5 or 6 days in length. In this implementation, it is considered a 13th month.
Public propertyEras
Gets a read-only list of eras used in this calendar system.
Public propertyStatic memberGregorian
Returns a Gregorian calendar system with at least 4 days in the first week of a week-year.
Public propertyStatic memberHebrewCivil
Returns a Hebrew calendar system using the civil month numbering, equivalent to the one used by the BCL HebrewCalendar.
Public propertyStatic memberHebrewScriptural
Returns a Hebrew calendar system using the scriptural month numbering.
Public propertyId
Returns the unique identifier for this calendar system. This is provides full round-trip capability using ForId(String) to retrieve the calendar system from the identifier.
Public propertyStatic memberIds
Returns the IDs of all calendar systems available within Noda Time. The order of the keys is not guaranteed.
Public propertyStatic memberIslamicBcl
Returns an Islamic calendar system equivalent to the one used by the BCL HijriCalendar.
Public propertyStatic memberIso
Returns a calendar system that follows the rules of the ISO-8601 standard, which is compatible with Gregorian for all modern dates.
Public propertyStatic memberJulian
Returns a pure proleptic Julian calendar system, which defines every fourth year as a leap year. This implementation follows the leap year rule strictly, even for dates before 8 CE, where leap years were actually irregular.
Public propertyMaxYear
Gets the maximum valid year (inclusive) within this calendar.
Public propertyMinYear
Gets the minimum valid year (inclusive) within this calendar.
Public propertyName
Returns the name of this calendar system. Each kind of calendar system has a unique name, but this does not usually provide enough information for round-tripping. (For example, the name of an Islamic calendar system does not indicate which kind of leap cycle it uses, and other calendars specify the minimum number of days in the first week of a year.)
Public propertyStatic memberPersianArithmetic
Returns a Persian (also known as Solar Hijri) calendar system implementing the behaviour of the BCL
PersianCalendar
from .NET 4.6 onwards (and Windows 10), and the astronomical system described in Wikipedia and Calendrical Calculations.
Public propertyStatic memberPersianAstronomical
Returns a Persian (also known as Solar Hijri) calendar system implementing the behaviour proposed by Ahmad Birashk with nested cycles of years determining which years are leap years.
Public propertyStatic memberPersianSimple
Returns a Persian (also known as Solar Hijri) calendar system implementing the behaviour of the BCL
PersianCalendar
before .NET 4.6, and the sole Persian calendar in Noda Time 1.3.
Public propertyStatic memberUmAlQura
Returns an Um Al Qura calendar system - an Islamic calendar system primarily used by Saudi Arabia.
Back to Top
See Also