TimeSpan Properties

The TimeSpan type exposes the following members.

  Name Description
Public property Days Gets the days component of the time interval represented by the current TimeSpan structure.
Public property Hours Gets the hours component of the time interval represented by the current TimeSpan structure.
Public property Milliseconds Gets the milliseconds component of the time interval represented by the current TimeSpan structure.
Public property Minutes Gets the minutes component of the time interval represented by the current TimeSpan structure.
Public property Seconds Gets the seconds component of the time interval represented by the current TimeSpan structure.
Public property Ticks Gets the number of ticks that represent 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft