Duration Properties

Properties

Days Gets the number of whole days represented by this instance
DaysInOneMonth This property is used to set or get the number of days in one month
DaysInOneYear This property is used to set or get the number of days in one year
Months Gets the number of whole months represented by this instance
Ticks This allows the underlying time span (and thus the duration) to be serialized and deserialized
TicksPerMonth This returns the number of timer ticks in one month based on the current setting of DaysInOneMonth.
TicksPerYear This returns the number of timer ticks in one year based on the current setting of DaysInOneYear.
TimeSpan This allows access to the underlying TimeSpan object
TotalMonths Gets the value of this instance expressed in whole and fractional months
TotalWeeks Gets the value of this instance expressed in whole and fractional weeks
TotalYears Gets the value of this instance expressed in whole and fractional years
Weeks Gets the number of whole weeks represented by this instance
Years Gets the number of whole years represented by this instance

See Also