This function extracts the hours component of a dayTimeDuration , as an integer. For example, if the supplied duration is «PT3 6H » , the result will be 12 .
Argument | Data Type | Meaning |
---|---|---|
input | xdt:yearMonthDuration | The value from which the hours component is to be extracted |
Result | xs:integer | The number of hours in the duration, after normalizing it so that 60 minutes is represented as one hour and 24 hours is represented as one day. The value will be negative if the duration is negative |