PhoenixmlDb.Core

XsTime

Represents an xs:time value with optional timezone and sub-second precision.

#XsTime

Namespace: PhoenixmlDb.Xdm

Represents an

xs:time

value with optional timezone and sub-second precision.

Unlike TimeOnly, this type preserves timezone offset information and fractional seconds beyond tick precision. The XsTime.Timezone property distinguishes "no timezone" (null) from UTC (TimeSpan.Zero), which is significant for XPath time comparisons and timezone adjustment functions.

Comparison: Times are compared by normalizing to UTC. When no timezone is present, the system's implicit timezone is used, per the XPath Functions and Operators specification.

24:00:00: The XML Schema value 24:00:00 (end of day) is normalized to 00:00:00 during parsing, since TimeOnly does not support hour 24.

#Constructors

##ctor(TimeOnly,Nullable<TimeSpan>,Int32)

Represents an

xs:time

value with optional timezone and sub-second precision.

Unlike TimeOnly, this type preserves timezone offset information and fractional seconds beyond tick precision. The XsTime.Timezone property distinguishes "no timezone" (null) from UTC (TimeSpan.Zero), which is significant for XPath time comparisons and timezone adjustment functions.

Comparison: Times are compared by normalizing to UTC. When no timezone is present, the system's implicit timezone is used, per the XPath Functions and Operators specification.

24:00:00: The XML Schema value 24:00:00 (end of day) is normalized to 00:00:00 during parsing, since TimeOnly does not support hour 24.

#Methods

#ToUtcTicks

Converts this time to UTC ticks for comparison. Per XPath F&O §10.4, uses the system implicit timezone when timezone is absent.