The below XQuery code returns:
Duration=3 hour
but I expect:
Duration=03 hour
What am I doing wrong?
{
let $hour := hours-from-duration(op:subtract-times(xs:time(fn:substring-after('2015-07-31T10:25:00','T')),xs:time(fn:substring-after('2015-07-31T07:15:00','T'))))
return
<FlightDuration> {($hour)}</FlightDuration>
}