NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeSpan Structure

Represents a period of time.

Object
   ValueType
      TimeSpan

[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.

Remarks

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".

Requirements

Namespace: System

Assembly: mscorlib.dll

See Also

TimeSpan Members | System Namespace