Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class NodaTime.​Calendars.​WeekYearRuleExtensions

Assembly: NodaTime

Inheritance: object → WeekYearRuleExtensions

Extension methods on <see cref="T:NodaTime.Calendars.IWeekYearRule" /> .

Methods

public static LocalDate
GetLocalDate​(IWeekYearRule rule, int weekYear, int weekOfWeekYear, IsoDayOfWeek dayOfWeek)
Convenience method to call <see cref="M:NodaTime.Calendars.IWeekYearRule.GetLocalDate(System.Int32,System.Int32,NodaTime.IsoDayOfWeek,NodaTime.CalendarSystem)" /> passing in the ISO calendar system.
Returns A <see cref="T:NodaTime.LocalDate" /> corresponding to the specified values.
rule The rule to delegate the call to.
weekYear The week-year of the new date. Implementations provided by Noda Time allow any year which is a valid calendar year, and sometimes one less than the minimum calendar year and/or one more than the maximum calendar year, to allow for dates near the start of a calendar year to fall in the previous week year, and similarly for dates near the end of a calendar year.
weekOfWeekYear The week of week-year of the new date. Valid values for this parameter may vary depending on <paramref name="weekYear" /> , as the length of a year in weeks varies.
dayOfWeek The day-of-week of the new date. Valid values for this parameter may vary depending on <paramref name="weekYear" /> and <paramref name="weekOfWeekYear" /> .
public static int
GetWeeksInWeekYear​(IWeekYearRule rule, int weekYear)
Convenience overload to call <see cref="M:NodaTime.Calendars.IWeekYearRule.GetWeeksInWeekYear(System.Int32,NodaTime.CalendarSystem)" /> with the ISO calendar system.
Returns The number of weeks in the given week year.
rule The rule to delegate the call to.
weekYear The week year to calculate the number of contained weeks.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object