Altova MapForce 2023 Basic Edition

Returns an xs:integer representing the hours component of the canonical representation of the duration value supplied as argument.

 

Languages

XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Type

Description

duration

xs:duration

The input value of type xs:duration.

 

Example

If the duration is PT1H60M (1 hour and 60 minutes), the function returns 2, not 1. This is because the canonical representation of PT1H60M is actually PT2H (2 hours).

© 2017-2023 Altova GmbH