TimeSpan Properties
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The TimeSpan type exposes the following members.
| Name | Description | |
|---|---|---|
|
Days | Gets the days component of the time interval represented by the current TimeSpan structure. |
|
Hours | Gets the hour component of the time interval represented by the current TimeSpan structure. |
|
Milliseconds | Gets the millisecond component of the time interval represented by the current TimeSpan structure. |
|
Minutes | Gets the minute component of the time interval represented by the current TimeSpan structure. |
|
Seconds | Gets the second component of the time interval represented by the current TimeSpan structure. |
|
Ticks | Gets the number of ticks that represents the value of the current TimeSpan structure. |
|
TotalDays | Gets the value of the current TimeSpan structure expressed in whole and fractional days. |
|
TotalHours | Gets the value of the current TimeSpan structure expressed in whole and fractional hours. |
|
TotalMilliseconds | Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds. |
|
TotalMinutes | Gets the value of the current TimeSpan structure expressed in whole and fractional minutes. |
|
TotalSeconds | Gets the value of the current TimeSpan structure expressed in whole and fractional seconds. |
Show: