Altova MapForce 2024 Enterprise Edition

Adjusts an xs:dateTime value to a specific time zone, or to no time zone at all. If the timezone argument is an empty sequence, the function returns an xs:dateTime without a time zone. Otherwise, it returns an xs:dateTime with a time zone.

mf-func-xpath2-adjust-dateTime-to-timezone2

 

Languages

XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Type

Description

dateTime

xs:dateTime

The input value of type xs:dateTime.

timezone

xs:dayTimeDuration

The time zone expressed as an xs:dayTimeDuration value. The value can be negative. For example, a time zone value of -5 hours can be expressed as -PT5H.

© 2017-2023 Altova GmbH