System Namespace
Represents an interval in time.
Visibility |
Name |
Parameters |
Return Type |
public |
Add |
(
TimeSpan
ts
)
|
TimeSpan
|
public static |
Compare |
(
TimeSpan
t1
,
TimeSpan
t2
)
|
Int32
|
public |
CompareTo |
(
TimeSpan
value
)
|
Int32
|
public |
CompareTo |
(
Object
value
)
|
Int32
|
public |
Duration |
( )
|
TimeSpan
|
public |
Equals |
(
TimeSpan
obj
)
|
Boolean
|
public |
Equals |
(
Object
value
)
|
Boolean
|
public static |
Equals |
(
TimeSpan
t1
,
TimeSpan
t2
)
|
Boolean
|
public static |
FromDays |
(
Double
value
)
|
TimeSpan
|
public static |
FromHours |
(
Double
value
)
|
TimeSpan
|
public static |
FromMilliseconds |
(
Double
value
)
|
TimeSpan
|
public static |
FromMinutes |
(
Double
value
)
|
TimeSpan
|
public static |
FromSeconds |
(
Double
value
)
|
TimeSpan
|
public static |
FromTicks |
(
Int64
value
)
|
TimeSpan
|
public |
GetHashCode |
( )
|
Int32
|
public |
Negate |
( )
|
TimeSpan
|
public static |
Parse |
(
String
input
,
IFormatProvider
formatProvider
)
|
TimeSpan
|
public static |
Parse |
(
String
s
)
|
TimeSpan
|
public static |
ParseExact |
(
String
input
,
String
formats
,
IFormatProvider
formatProvider
)
|
TimeSpan
|
public static |
ParseExact |
(
String
input
,
String
format
,
IFormatProvider
formatProvider
,
TimeSpanStyles
styles
)
|
TimeSpan
|
public static |
ParseExact |
(
String
input
,
String
formats
,
IFormatProvider
formatProvider
,
TimeSpanStyles
styles
)
|
TimeSpan
|
public static |
ParseExact |
(
String
input
,
String
format
,
IFormatProvider
formatProvider
)
|
TimeSpan
|
public |
Subtract |
(
TimeSpan
ts
)
|
TimeSpan
|
public |
ToString |
(
String
format
,
IFormatProvider
formatProvider
)
|
String
|
public |
ToString |
( )
|
String
|
public |
ToString |
(
String
format
)
|
String
|
public static |
TryParse |
(
String
input
,
IFormatProvider
formatProvider
,
TimeSpan&
result
)
|
Boolean
|
public static |
TryParse |
(
String
s
,
TimeSpan&
result
)
|
Boolean
|
public static |
TryParseExact |
(
String
input
,
String
formats
,
IFormatProvider
formatProvider
,
TimeSpan&
result
)
|
Boolean
|
public static |
TryParseExact |
(
String
input
,
String
format
,
IFormatProvider
formatProvider
,
TimeSpan&
result
)
|
Boolean
|
public static |
TryParseExact |
(
String
input
,
String
format
,
IFormatProvider
formatProvider
,
TimeSpanStyles
styles
,
TimeSpan&
result
)
|
Boolean
|
public static |
TryParseExact |
(
String
input
,
String
formats
,
IFormatProvider
formatProvider
,
TimeSpanStyles
styles
,
TimeSpan&
result
)
|
Boolean
|
|
The value of an instance of TimeSpan represents a period of time. That value is the number of "ticks" contained in the instance. A tick is the smallest unit of time that can be specified, and is equal to 100 nanoseconds. Both the specification of a number of ticks and the value of a TimeSpan can be positive or negative.
This value type implements the IComparable interface.
|
|