Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

  NameDescription
Public property Days Gets the days component of the time interval represented by the current TimeSpan structure.
Public property Hours Gets the hour component of the time interval represented by the current TimeSpan structure.
Public property Milliseconds Gets the millisecond component of the time interval represented by the current TimeSpan structure.
Public property Minutes Gets the minute component of the time interval represented by the current TimeSpan structure.
Public property Seconds Gets the second component of the time interval represented by the current TimeSpan structure.
Public property Ticks Gets the number of ticks that represents the value of the current TimeSpan structure.
Public property TotalDays Gets the value of the current TimeSpan structure expressed in whole and fractional days.
Public property TotalHours Gets the value of the current TimeSpan structure expressed in whole and fractional hours.
Public property TotalMilliseconds Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds.
Public property TotalMinutes Gets the value of the current TimeSpan structure expressed in whole and fractional minutes.
Public property TotalSeconds Gets the value of the current TimeSpan structure expressed in whole and fractional seconds.
Top

Show: