Noda Time
WeekYear Property
NamespacesNodaTimeOffsetDateTimeWeekYear

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

Gets the "week year" of this offset date and time.
Declaration Syntax
C#Visual BasicVisual C++
public int WeekYear { get; }
Public ReadOnly Property WeekYear As Integer
	Get
public:
property int WeekYear {
	int get ();
}
Remarks

The WeekYear is the year that matches with the WeekOfWeekYear field. In the standard ISO8601 week algorithm, the first week of the year is that in which at least 4 days are in the year. As a result of this definition, day 1 of the first week may be in the previous year. The WeekYear allows you to query the effective year for that day.

For example, January 1st 2011 was a Saturday, so only two days of that week (Saturday and Sunday) were in 2011. Therefore January 1st is part of week 52 of WeekYear 2010. Conversely, December 31st 2012 is a Monday, so is part of week 1 of WeekYear 2013.

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