Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- days
Type: System. . :: . .Int32
Number of days.
- hours
Type: System. . :: . .Int32
Number of hours.
- minutes
Type: System. . :: . .Int32
Number of minutes.
- seconds
Type: System. . :: . .Int32
Number of seconds.
- milliseconds
Type: System. . :: . .Int32
Number of milliseconds.
Remarks
The specified days, hours, minutes, seconds, and milliseconds are converted to ticks, and that value initializes this instance.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.