Share via


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)

Syntax

'Declaration
Public Sub New ( _
    hours As Integer, _
    minutes As Integer, _
    seconds As Integer _
)
public TimeSpan(
    int hours,
    int minutes,
    int seconds
)
public:
TimeSpan(
    int hours, 
    int minutes, 
    int seconds
)
new : 
        hours:int * 
        minutes:int * 
        seconds:int -> TimeSpan
public function TimeSpan(
    hours : int, 
    minutes : int, 
    seconds : int
)

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

TimeSpan Structure

TimeSpan Overload

System Namespace