.NET Framework Class Library
TimeSpan Members

Represents a time interval.

The TimeSpan type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTimeSpanOverloaded. Initializes a new TimeSpan.
Top
Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkAddAdds the specified TimeSpan to this instance.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareCompares two TimeSpan values and returns an integer that indicates whether the first value is shorter than, equal to, or longer than the second value.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareToOverloaded. Compares this instance to a specified object or TimeSpan object and returns an integer that indicates whether this instance is shorter than, equal to, or longer than the specified object or TimeSpan object.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDurationReturns a new TimeSpan object whose value is the absolute value of the current TimeSpan object.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualsOverloaded. Returns a value indicating whether two instances of TimeSpan are equal.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromDaysReturns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromHoursReturns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromMillisecondsReturns a TimeSpan that represents a specified number of milliseconds.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromMinutesReturns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromSecondsReturns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromTicksReturns a TimeSpan that represents a specified time, where the specification is in units of ticks.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCodeReturns a hash code for this instance. (Overrides ValueType..::.GetHashCode()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkNegateReturns a TimeSpan whose value is the negated value of this instance.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkParseConstructs a new TimeSpan object from a time interval specified in a string.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSubtractSubtracts the specified TimeSpan from this instance.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringReturns the string representation of the value of this instance. (Overrides ValueType..::.ToString()()().)
Public methodStatic memberTryParseConstructs 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
Operators

  NameDescription
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkAdditionAdds two specified TimeSpan instances.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualityIndicates whether two TimeSpan instances are equal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGreaterThanIndicates whether a specified TimeSpan is greater than another specified TimeSpan.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGreaterThanOrEqualIndicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInequalityIndicates whether two TimeSpan instances are not equal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLessThanIndicates whether a specified TimeSpan is less than another specified TimeSpan.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLessThanOrEqualIndicates whether a specified TimeSpan is less than or equal to another specified TimeSpan.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSubtractionSubtracts a specified TimeSpan from another specified TimeSpan.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUnaryNegationReturns a TimeSpan whose value is the negated value of the specified instance.
Public operatorStatic memberUnaryPlusReturns the specified instance of TimeSpan.
Top
Fields

  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMaxValueRepresents the maximum TimeSpan value. This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMinValueRepresents the minimum TimeSpan value. This field is read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTicksPerDayRepresents the number of ticks in 1 day. This field is constant.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTicksPerHourRepresents the number of ticks in 1 hour. This field is constant.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTicksPerMillisecondRepresents the number of ticks in 1 millisecond. This field is constant.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTicksPerMinuteRepresents the number of ticks in 1 minute. This field is constant.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTicksPerSecondRepresents the number of ticks in 1 second.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkZeroRepresents the zero TimeSpan value. This field is read-only.
Top
Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkDaysGets the days component of the time interval represented by the current TimeSpan structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkHoursGets the hours component of the time interval represented by the current TimeSpan structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkMillisecondsGets the milliseconds component of the time interval represented by the current TimeSpan structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkMinutesGets the minutes component of the time interval represented by the current TimeSpan structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkSecondsGets the seconds component of the time interval represented by the current TimeSpan structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTicksGets the number of ticks that represent the value of the current TimeSpan structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTotalDaysGets the value of the current TimeSpan structure expressed in whole and fractional days.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTotalHoursGets the value of the current TimeSpan structure expressed in whole and fractional hours.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTotalMillisecondsGets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTotalMinutesGets the value of the current TimeSpan structure expressed in whole and fractional minutes.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTotalSecondsGets the value of the current TimeSpan structure expressed in whole and fractional seconds.
Top
See Also

Reference

Tags :


Page view tracker