TimeSpanStatic

TimeSpanStatic


Provides severs static functions to help in creating TimeSpan objects.


See Also

Project VBCorLib Overview | TimeSpan

Public:

Properties:

NameDescription
 MaxValue (get)Returns a TimeSpan with a maximum value. 
 MinValue (get)Returns a TimeSpan with a minimum value. 
 Zero (get)Returns a TimeSpan with a value of zero. 

Methods:

NameDescription
 FromDateReturns a TimeSpan object representing the time of day of the date. 
 FromDaysReturns a TimeSpan created from days. 
 FromHoursReturns a TimeSpan created from hours. 
 FromMillisecondsReturns a TimeSpan created from milliseconds. 
 FromMinutesReturns a TimeSpan created from minutes. 
 FromSecondsReturns a TimeSpan created from seconds. 
 FromTicksReturns a TimeSpan created from ticks. 
 ParseParses a string in the format of [d.]h:mm:ss[.ff] into a TimeSpan. 
 TryParseAttempts to parse the string into a TimeSpan object.