Click or drag to resize

GregorianDateIsValid Method

Indicates whether the date values provided are a valid representation of a date and time.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static bool IsValid(
	int year,
	int month,
	int day,
	int hour,
	int minute,
	double second
)

Parameters

year
Type: SystemInt32
The year.
month
Type: SystemInt32
The month of the year (in the range 1 through 12)
day
Type: SystemInt32
The day of the month (in the range 1 through the number of days in month)
hour
Type: SystemInt32
The hour (in the range 0 through 23).
minute
Type: SystemInt32
The minute (in the range 0 through 59).
second
Type: SystemDouble
The second, including fractional seconds (in the range 0.0 up to, but not including, 61.0). A second between 60.0 and 61.0 (a leap second) is only valid if the overall time is during one of the official leap seconds.

Return Value

Type: Boolean
true if the representation is valid and false if it is not.
See Also