CalendarSystem MembersNoda Time

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 methodStatic memberGetCopticCalendar
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 methodGetDaysInMonth
Returns the number of days in the given month within the given year.
Public methodStatic memberGetGregorianCalendar
Returns a pure proleptic Gregorian calendar system, which defines every fourth year as leap, unless the year is divisible by 100 and not by 400. This improves upon the Julian calendar leap year rule.
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 methodStatic memberGetJulianCalendar
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 methodGetMaxMonth
The maximum valid month (inclusive) within this calendar in the given year. It is assumed that all calendars start with month 1 and go up to this month number in any valid year.
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 methodStatic memberGetPersianCalendar
Returns a Persian (also known as Solar Hijri) calendar system. This is the main calendar in Iran and Afghanistan, and is also used in some other countries where Persian is spoken.
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 propertyEras
Returns a read-only list of eras used in this calendar system.
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 memberIso
Returns a calendar system that follows the rules of the ISO-8601 standard, which is compatible with Gregorian for all modern dates.
Public propertyMaxYear
The maximum valid year (inclusive) within this calendar.
Public propertyMinYear
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 propertyUsesIsoDayOfWeek
Returns whether the day-of-week field refers to ISO days. If true, types such as LocalDateTime can use the IsoDayOfWeek property to avoid using magic numbers. This defaults to true, but can be overridden by specific calendars.
Back to Top
See Also