TimeSpan Constructor (Int32, Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new TimeSpan to a specified number of hours, minutes, and seconds.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public TimeSpan(
	int hours,
	int minutes,
	int seconds
)

Parameters

hours
Type: System..::..Int32
Number of hours.
minutes
Type: System..::..Int32
Number of minutes.
seconds
Type: System..::..Int32
Number of seconds.

The specified hours, minutes, and seconds are converted to ticks, and that value initializes this instance.

Show: