Noda Time
LocalDateTime Constructor (year, month, day, hour, minute, second, millisecond, tickWithinMillisecond)
NamespacesNodaTimeLocalDateTimeLocalDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

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

Initializes a new instance of the LocalDateTime struct.
Declaration Syntax
C#Visual BasicVisual C++
public LocalDateTime(
	int year,
	int month,
	int day,
	int hour,
	int minute,
	int second,
	int millisecond,
	int tickWithinMillisecond
)
Public Sub New ( _
	year As Integer, _
	month As Integer, _
	day As Integer, _
	hour As Integer, _
	minute As Integer, _
	second As Integer, _
	millisecond As Integer, _
	tickWithinMillisecond As Integer _
)
public:
LocalDateTime(
	int year, 
	int month, 
	int day, 
	int hour, 
	int minute, 
	int second, 
	int millisecond, 
	int tickWithinMillisecond
)
Parameters
year (Int32)
The year. This is the "absolute year", so a value of 0 means 1 BC, for example.
month (Int32)
The month of year.
day (Int32)
The day of month.
hour (Int32)
The hour.
minute (Int32)
The minute.
second (Int32)
The second.
millisecond (Int32)
The millisecond.
tickWithinMillisecond (Int32)
The tick within millisecond.
Return Value
The resulting date/time.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe parameters do not form a valid date/time.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)