CalendarSystem Gregorian Property Noda Time

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

Returns a Gregorian calendar system with at least 4 days in the first week of a week-year.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public static CalendarSystem Gregorian { get; }

Property Value

Type: CalendarSystem
A Gregorian calendar system with at least 4 days in the first week of a week-year.
Remarks

The Gregorian calendar system 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.

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.

Version Information

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