CalendarSystem Id Property Noda Time
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.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public string Id { get; }

Property Value

Type: OnlineString
Remarks

A unique ID for a calendar is required when serializing types which include a CalendarSystem. As of 2 Nov 2012 (ISO calendar) there are no ISO or RFC standards for naming a calendar system. As such, the identifiers provided here are specific to Noda Time, and are not guaranteed to interoperate with any other date and time API.

Calendar IDEquivalent factory method
ISOIso
Gregorian 1GetGregorianCalendar(Int32)(1)
Gregorian 2GetGregorianCalendar(Int32)(2)
Gregorian 3GetGregorianCalendar(Int32)(3)
Gregorian 3GetGregorianCalendar(Int32)(4)
Gregorian 5GetGregorianCalendar(Int32)(5)
Gregorian 6GetGregorianCalendar(Int32)(6)
Gregorian 7GetGregorianCalendar(Int32)(7)
Coptic 1GetCopticCalendar(Int32)(1)
Coptic 2GetCopticCalendar(Int32)(2)
Coptic 3GetCopticCalendar(Int32)(3)
Coptic 4GetCopticCalendar(Int32)(4)
Coptic 5GetCopticCalendar(Int32)(5)
Coptic 6GetCopticCalendar(Int32)(6)
Coptic 7GetCopticCalendar(Int32)(7)
Julian 1GetJulianCalendar(Int32)(1)
Julian 2GetJulianCalendar(Int32)(2)
Julian 3GetJulianCalendar(Int32)(3)
Julian 4GetJulianCalendar(Int32)(4)
Julian 5GetJulianCalendar(Int32)(5)
Julian 6GetJulianCalendar(Int32)(6)
Julian 7GetJulianCalendar(Int32)(7)
Hijri Civil-IndianGetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.Indian, IslamicEpoch.Civil)
Hijri Civil-Base15GetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.Base15, IslamicEpoch.Civil)
Hijri Civil-Base16GetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.Base16, IslamicEpoch.Civil)
Hijri Civil-HabashAlHasibGetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.HabashAlHasib, IslamicEpoch.Civil)
Hijri Astronomical-IndianGetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.Indian, IslamicEpoch.Astronomical)
Hijri Astronomical-Base15GetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.Base15, IslamicEpoch.Astronomical)
Hijri Astronomical-Base16GetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.Base16, IslamicEpoch.Astronomical)
Hijri Astronomical-HabashAlHasibGetIslamicCalendar(IslamicLeapYearPattern, IslamicEpoch)(IslamicLeapYearPattern.HabashAlHasib, IslamicEpoch.Astronomical)
PersianGetPersianCalendar 
HebrewGetHebrewCalendar(HebrewMonthNumbering)
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also