Click or drag to resize

StartOfYear Constructor

Constructs a StartOfYear specifying a definition of "years" that begin on the specified first day of the year.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public StartOfYear(
	int monthOfYear,
	int dayOfMonth
)

Parameters

monthOfYear  Int32
A number between 1 and 12 (inclusive) indicating the month of the year in which the "year" should start. For example, if you're working with UK financial years, choose 4 to specify that your "years" start in April.
dayOfMonth  Int32
A number between 1 and the number of days in monthOfYear (inclusive) indicating which day in monthOfYear should be taken as the first day of the "year". Note that the upper limit for February is 28, not 29, since February only has 29 days on leap years and a StartOfYear must be applicable to all years.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionmonthOfYear and/or dayOfMonth are invalid according to the rules explained above.
See Also