AnnualDate IsValidYear Method Noda Time

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

Checks whether the specified year forms a valid date with the month/day in this value, without any truncation. This will always return except for values representing February 29th, where the specified year is a non leap year.

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

public bool IsValidYear(
	int year
)

Return Value

Type: OnlineBoolean
if the current value occurs within the given year; otherwise.
Version Information

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