Represents a period of time.
[Visual Basic] Public Structure TimeSpan Implements IComparable [C#] public struct TimeSpan : IComparable [C++] public __value struct TimeSpan : public IComparable
[JScript] In JScript, you can use the structures in the NGWS frameworks, but you cannot define your own.
TimeSpan can be negative or positive.
The smallest unit of time is the "tick," which is equal to 100-nanoseconds. For example, a Ticks value of 0 represents the 0 time value, which has the string representation "00:00:00" ("hh:mm:ss"). Each additional tick increases the time by 100-nanoseconds.
The Ticks value can also be negative; a Ticks value of negative 1 represents the time "-00:00:00.0000001".
Namespace: System
Assembly: mscorlib.dll