Export (0) Print
Expand All
1 out of 5 rated this helpful - Rate this topic

TimeSpan Members

Represents a time interval.

The following tables list the members exposed by the TimeSpan type.

  Name Description
Public method Supported by the .NET Compact Framework TimeSpan Overloaded. Initializes a new TimeSpan.
Top
  Name Description
Public field Static Supported by the .NET Compact Framework MaxValue Represents the maximum TimeSpan value. This field is read-only.
Public field Static Supported by the .NET Compact Framework MinValue Represents the minimum TimeSpan value. This field is read-only.
Public field Static Supported by the .NET Compact Framework TicksPerDay Represents the number of ticks in 1 day. This field is constant.
Public field Static Supported by the .NET Compact Framework TicksPerHour Represents the number of ticks in 1 hour. This field is constant.
Public field Static Supported by the .NET Compact Framework TicksPerMillisecond Represents the number of ticks in 1 millisecond. This field is constant.
Public field Static Supported by the .NET Compact Framework TicksPerMinute Represents the number of ticks in 1 minute. This field is constant.
Public field Static Supported by the .NET Compact Framework TicksPerSecond Represents the number of ticks in 1 second.
Public field Static Supported by the .NET Compact Framework Zero Represents the zero TimeSpan value. This field is read-only.
Top
  Name Description
Public property Supported by the .NET Compact Framework Days Gets the number of whole days represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Hours Gets the number of whole hours represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Milliseconds Gets the number of whole milliseconds represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Minutes Gets the number of whole minutes represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Seconds Gets the number of whole seconds represented by the current TimeSpan structure.
Public property Supported by the .NET Compact Framework Ticks Gets the number of ticks that represent the value of the current TimeSpan structure.
Public property Supported by the .NET Compact Framework TotalDays Gets the value of the current TimeSpan structure expressed in whole and fractional days.
Public property Supported by the .NET Compact Framework TotalHours Gets the value of the current TimeSpan structure expressed in whole and fractional hours.
Public property Supported by the .NET Compact Framework TotalMilliseconds Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.
Public property Supported by the .NET Compact Framework TotalMinutes Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.
Public property Supported by the .NET Compact Framework TotalSeconds Gets the value of the current TimeSpan structure expressed in whole and fractional seconds.
Top
  Name Description
Public method Supported by the .NET Compact Framework Add Adds the specified TimeSpan to this instance.
Public method Static Supported by the .NET Compact Framework Compare Compares two TimeSpan values and returns an integer that indicates their relationship.
Public method Supported by the .NET Compact Framework CompareTo Overloaded. Compares this instance to a specified object or TimeSpan and returns an indication of their relative values.
Public method Supported by the .NET Compact Framework Duration Returns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.
Public method Supported by the .NET Compact Framework Equals Overloaded. Overridden. Returns a value indicating whether two instances of TimeSpan are equal.
Public method Static Supported by the .NET Compact Framework FromDays Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromHours Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromMilliseconds Returns a TimeSpan that represents a specified number of milliseconds.
Public method Static Supported by the .NET Compact Framework FromMinutes Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromSeconds Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
Public method Static Supported by the .NET Compact Framework FromTicks Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.
Public method Supported by the .NET Compact Framework GetHashCode Overridden. Returns a hash code for this instance.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Negate Returns a TimeSpan whose value is the negated value of this instance.
Public method Static Supported by the .NET Compact Framework op_Addition Adds two specified TimeSpan instances.
Public method Static Supported by the .NET Compact Framework op_Equality Indicates whether two TimeSpan instances are equal.
Public method Static Supported by the .NET Compact Framework op_GreaterThan Indicates whether a specified TimeSpan is greater than another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_GreaterThanOrEqual Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_Inequality Indicates whether two TimeSpan instances are not equal.
Public method Static Supported by the .NET Compact Framework op_LessThan Indicates whether a specified TimeSpan is less than another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_LessThanOrEqual Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_Subtraction Subtracts a specified TimeSpan from another specified TimeSpan.
Public method Static Supported by the .NET Compact Framework op_UnaryNegation Returns a TimeSpan whose value is the negated value of the specified instance.
Public method Static op_UnaryPlus Returns the specified instance of TimeSpan.
Public method Static Supported by the .NET Compact Framework Parse Constructs a new TimeSpan object from a time interval specified in a string.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Subtract Subtracts the specified TimeSpan from this instance.
Public method Supported by the .NET Compact Framework ToString Overridden. Returns the string representation of the value of this instance.
Public method Static TryParse Constructs a new TimeSpan object from a time interval specified in a string. Parameters specify the time interval and the variable where the new TimeSpan object is returned.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.