# TimeSpan Members

**.NET Framework 1.1**

#### Public Constructors

TimeSpan Constructor Supported by the .NET Compact Framework. | Overloaded. Initializes a new TimeSpan. |

#### Public Fields

MaxValue Supported by the .NET Compact Framework. | Represents the maximum TimeSpan value. This field is read-only. |

MinValue Supported by the .NET Compact Framework. | Represents the minimum TimeSpan value. This field is read-only. |

TicksPerDay Supported by the .NET Compact Framework. | Represents the number of ticks in 1 day. This field is constant. |

TicksPerHour Supported by the .NET Compact Framework. | Represents the number of ticks in 1 hour. This field is constant. |

TicksPerMillisecond Supported by the .NET Compact Framework. | Represents the number of ticks in 1 millisecond. This field is constant. |

TicksPerMinute Supported by the .NET Compact Framework. | Represents the number of ticks in 1 minute. This field is constant. |

TicksPerSecond Supported by the .NET Compact Framework. | Represents the number of ticks in 1 second. |

Zero Supported by the .NET Compact Framework. | Represents the zero TimeSpan value. This field is read-only. |

#### Public Properties

Days Supported by the .NET Compact Framework. | Gets the number of whole days represented by this instance. |

Hours Supported by the .NET Compact Framework. | Gets the number of whole hours represented by this instance. |

Milliseconds Supported by the .NET Compact Framework. | Gets the number of whole milliseconds represented by this instance. |

Minutes Supported by the .NET Compact Framework. | Gets the number of whole minutes represented by this instance. |

Seconds Supported by the .NET Compact Framework. | Gets the number of whole seconds represented by this instance. |

Ticks Supported by the .NET Compact Framework. | Gets the value of this instance in ticks. |

TotalDays Supported by the .NET Compact Framework. | Gets the value of this instance expressed in whole and fractional days. |

TotalHours Supported by the .NET Compact Framework. | Gets the value of this instance expressed in whole and fractional hours. |

TotalMilliseconds Supported by the .NET Compact Framework. | Gets the value of this instance expressed in whole and fractional milliseconds. |

TotalMinutes Supported by the .NET Compact Framework. | Gets the value of this instance expressed in whole and fractional minutes. |

TotalSeconds Supported by the .NET Compact Framework. | Gets the value of this instance expressed in whole and fractional seconds. |

#### Public Methods

Add Supported by the .NET Compact Framework. | Adds the specified TimeSpan to this instance. |

Compare Supported by the .NET Compact Framework. | Compares two TimeSpan values and returns an integer that indicates their relationship. |

CompareTo Supported by the .NET Compact Framework. | Compares this instance to a specified object and returns an indication of their relative values. |

Duration Supported by the .NET Compact Framework. | Returns a TimeSpan whose value is the absolute value of this instance. |

Equals Supported by the .NET Compact Framework. | Overloaded. Overridden. Returns a value indicating whether two instances of TimeSpan are equal. |

FromDays Supported by the .NET Compact Framework. | Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond. |

FromHours Supported by the .NET Compact Framework. | Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond. |

FromMilliseconds Supported by the .NET Compact Framework. | Returns a TimeSpan that represents a specified number of milliseconds. |

FromMinutes Supported by the .NET Compact Framework. | Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond. |

FromSeconds Supported by the .NET Compact Framework. | Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond. |

FromTicks Supported by the .NET Compact Framework. | Returns a TimeSpan that represents a specified time, where the specification is in units of ticks. |

GetHashCode Supported by the .NET Compact Framework. | Overridden. Returns a hash code for this instance. |

GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |

Negate Supported by the .NET Compact Framework. | Returns a TimeSpan whose value is the negated value of this instance. |

Parse Supported by the .NET Compact Framework. | Constructs a TimeSpan from a time indicated by a specified string. |

Subtract Supported by the .NET Compact Framework. | Subtracts the specified TimeSpan from this instance. |

ToString Supported by the .NET Compact Framework. | Overridden. Returns the string representation of the value of this instance. |

#### Public Operators

Addition Operator Supported by the .NET Compact Framework. | Adds two specified TimeSpan instances. |

Equality Operator Supported by the .NET Compact Framework. | Indicates whether two TimeSpan instances are equal. |

Greater Than Operator Supported by the .NET Compact Framework. | Indicates whether a specified TimeSpan is greater than another specified TimeSpan. |

Greater Than Or Equal Operator Supported by the .NET Compact Framework. | Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan. |

Inequality Operator Supported by the .NET Compact Framework. | Indicates whether two TimeSpan instances are not equal. |

Less Than Operator Supported by the .NET Compact Framework. | Indicates whether a specified TimeSpan is less than another specified TimeSpan. |

Less Than Or Equal Operator Supported by the .NET Compact Framework. | Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan. |

Subtraction Operator Supported by the .NET Compact Framework. | Subtracts a specified TimeSpan from another specified TimeSpan. |

Unary Negation Operator Supported by the .NET Compact Framework. | Returns a TimeSpan whose value is the negated value of the specified instance. |

Unary Plus Operator | Returns the specified instance of TimeSpan. |

#### Protected Methods

Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |

MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |