Constructors: NewTimeSpan

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 in the timespan.
Hours
[ByVal] Optional. Long. The number of hours in the timespan.
Minutes
[ByVal] Optional. Long. The number of minutes in the timespan.
Seconds
[ByVal] Optional. Long. The number of seconds in the timespan.
Milliseconds
[ByVal] Optional. Long. The number of milliseconds in the timespan.

Return Values

TimeSpan -  A TimeSpan with the specified time.

Remarks

The values can be both positive and negative.

See Also

Project VBCorLib Overview Class Constructors Overview Constructors Properties Constructors Methods NewTime NewUnauthorizedAccessException