Search
TimeSpan Members
Constructors Properties Methods
 


Represents a time interval.

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

 Public Constructors

  Name Description

TimeSpan

Initializes a new instance of the TimeSpan class.

 Public Properties

  Name Description

days

Gets the number of days that represent the value of this TimeSpan.

hours

Gets the number of hours that represent the value of this TimeSpan.

milliseconds

Gets the number of milliseconds that represent the value of this TimeSpan.

minutes

Gets the number of minutes that represent the value of this TimeSpan.

seconds

Gets the number of seconds that represent the value of this TimeSpan.

ticks

Gets the number of ticks that represent the value of this TimeSpan.

 Public Methods

  Name Description

add

Returns a new TimeSpan object whose value is the sum of the specified TimeSpan object and this instance.

clone

Creates a copy of the time span.

equals

Checks if the time span object represents the same time value as the current instance.

fromDays

Returns a TimeSpan that represents a specified number of days.

fromHours

Returns a TimeSpan that represents a specified number of hours.

fromMilliseconds

Returns a TimeSpan that represents a specified number of milliseconds.

fromMinutes

Returns a TimeSpan that represents a specified number of minutes.

fromSeconds

Returns a TimeSpan that represents a specified number of seconds.

subtract

Returns a new TimeSpan object whose value is the difference between the specified TimeSpan object and this instance.

 See Also