PhoenixmlDb.Core
XsDuration
Represents an xs:duration value with both month and day-time components, preserving the full XSD duration semantics that cannot.
#XsDuration
Namespace: PhoenixmlDb.Xdm
Represents an xs:duration value with both month and day-time components, preserving the full XSD duration semantics that cannot.
XSD durations have two independent components: a month count and a day-time span. These cannot be combined into a single time value because the number of days in a month varies. The and components are stored separately to preserve this distinction. Comparison: Durations are partially ordered — two durations with different month and day-time ratios may be incomparable. This implementation compares months first, then day-time, which is correct for durations that have the same ratio but may give unexpected results for mixed durations.
#Constructors
##ctor(Int32,TimeSpan)
Represents an xs:duration value with both month and day-time components, preserving the full XSD duration semantics that cannot.
Parameters:
-
TotalMonths— The month component (may be negative). -
DayTime— The day-time component as a .
XSD durations have two independent components: a month count and a day-time span. These cannot be combined into a single time value because the number of days in a month varies. The and components are stored separately to preserve this distinction. Comparison: Durations are partially ordered — two durations with different month and day-time ratios may be incomparable. This implementation compares months first, then day-time, which is correct for durations that have the same ratio but may give unexpected results for mixed durations.
#Properties
| Name | Description |
|---|---|
DayTime
|
The day-time component as a . |
TotalMonths
|
The month component (may be negative). |