Share via


TimeSpan Constructor (Int32, Int32, 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 days, hours, minutes, seconds, and milliseconds.

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

Syntax

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

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

TimeSpan Structure

TimeSpan Overload

System Namespace