NewTimeSpan
Creates a new TimeSpan object set to the specified amount of time.
Public Function NewTimeSpan(
Optional ByVal Days As Long,
Optional ByVal Hours As Long,
Optional ByVal Minutes As Long,
Optional ByVal Seconds As Long,
Optional ByVal Milliseconds As Long ) As TimeSpan
Parameters
- Days
-
[ByVal]
Optional.
Long.
The number of days.
- Hours
-
[ByVal]
Optional.
Long.
The number of hours.
- Minutes
-
[ByVal]
Optional.
Long.
The number of minutes.
- Seconds
-
[ByVal]
Optional.
Long.
The number of seconds.
- Milliseconds
-
[ByVal]
Optional.
Long.
The number of milliseconds.
Return Values
TimeSpan - A TimeSpan with the specified time.
Remarks
The values can be both positive and negative.
See Also
Project CorLib Overview
Class Constructors Overview