Click or drag to resize

GregorianDate Constructor (Int32, Int32, Int32, Int32, Int32, Double)

Initializes a GregorianDate from the provided values.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public GregorianDate(
	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.
Exceptions
ExceptionCondition
ArgumentException Thrown when one of the provided parameters is outside of its acceptable range.
See Also