I’m looking for an “hh:mm:ss.fff” kind of format for the xdt:dayTimeDuration result of an expression like (xs:dateTime(@t1) – xs:dateTime(@t0)).


I haven’t yet found a format-dayTimeDuration function. It seems that the probable reason for its absence is that there’s an elegant way to apply one or more of the existing functions to get the job done.


I can use the “get-*-from-dayTimeDuration” suite of functions to extract and format the individual duration components, but I wonder if there’s a  more elegant solution available to me. ?


Thank you in advance.


Cary Millsap
Hotsos Enterprises, Ltd.
Nullius in verba

Upcoming events:
- Performance Diagnosis 101: 1/4
- SQL Optimization 101: 11/8
Dallas, 12/13 Atlanta
- Hotsos Symposium 2005: March 6–10
- Visit www.hotsos.com for schedule details...