Noda Time
GetGregorianCalendar Method (minDaysInFirstWeek)
NamespacesNodaTimeCalendarSystemGetGregorianCalendar(Int32)

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

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.
Declaration Syntax
C#Visual BasicVisual C++
public static CalendarSystem GetGregorianCalendar(
	int minDaysInFirstWeek
)
Public Shared Function GetGregorianCalendar ( _
	minDaysInFirstWeek As Integer _
) As CalendarSystem
public:
static CalendarSystem^ GetGregorianCalendar(
	int minDaysInFirstWeek
)
Parameters
minDaysInFirstWeek (Int32)
The minimum number of days in the first week of the year. When computing the WeekOfWeekYear and WeekYear properties of a particular date, this is used to decide at what point the week year changes.
Return Value
A suitable Gregorian calendar reference; the same reference may be returned by several calls as the object is immutable and thread-safe.
Remarks
Although the Gregorian calendar did not exist before 1582 CE, this calendar system assumes it did, thus it is proleptic. This implementation also fixes the start of the year at January 1.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)