Share via


TimeSpan Constructor (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, and seconds.

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

Syntax

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

Parameters

Remarks

The specified days, 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