PhoenixmlDb.Core
DayTimeDuration
Represents an xs:dayTimeDuration value as a total seconds count using precision, supporting arbitrarily large durations.
#DayTimeDuration
Namespace: PhoenixmlDb.Xdm
Represents an xs:dayTimeDuration value as a total seconds count using precision, supporting arbitrarily large durations.
Unlike , which is limited to approximately ±10,000 days and 100-nanosecond tick precision, this type uses for the total seconds count. This allows representation of durations like P1234567890D without overflow. The canonical lexical form is PnDTnHnMnS (e.g., P2DT3H30M for 2 days, 3 hours, and 30 minutes). Fractional seconds are supported.
#Constructors
##ctor(Decimal)
Represents an xs:dayTimeDuration value as a total seconds count using precision, supporting arbitrarily large durations.
Parameters:
-
TotalSeconds— The total seconds as a (negative for negative durations).
Unlike , which is limited to approximately ±10,000 days and 100-nanosecond tick precision, this type uses for the total seconds count. This allows representation of durations like P1234567890D without overflow. The canonical lexical form is PnDTnHnMnS (e.g., P2DT3H30M for 2 days, 3 hours, and 30 minutes). Fractional seconds are supported.
#Properties
| Name | Description |
|---|---|
Hours
|
Hours component with sign preserved (per XQuery F&O component extraction). |
Minutes
|
Minutes component with sign preserved. |
Seconds
|
Seconds component with sign preserved. |
TotalSeconds
|
The total seconds as a (negative for negative durations). |
#Methods
#ToTimeSpan
Converts to TimeSpan if within range, otherwise throws.