Altova MapForce 2022 Enterprise Edition

Returns the year, as an integer value, from the xs:duration value supplied as argument.

mf-func-year-from-duration

 

Languages

Built-in, C++, C#, Java.

 

Parameters

Name

Type

Description

duration

xs:duration

Provides the input value of type xs:duration.

 

Example

If duration is P01Y04M0DT05H07M02.227S, the function returns 1.

© 2016-2022 Altova GmbH