This topic applies to the Order Component editor, Duration tab, Duration Expression area, XQuery subtab.
Context: There is no input document for this expression.
Prolog: There is no prolog required for this expression:
Body: The XQuery body returns a duration value based on the XQuery you enter:
PyYmMdDThHmMsS
where
P begins the expression.
yY specifies the year.
mM specifies the month.
dD specifies the day.
T separates the parts of the expression indicating the date from the parts of the expression indicating the time.
hH specifies the hour.
mM specifies the minutes.
sS specifies the seconds.
The following example is a hard coded duration expression for seven hours:
PT7H0M0S
For more information about how OSM uses these fields to calculate order component durations, see OSM Concepts.