convert-to-utc

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Functions > Function Library Reference > lang | datetime functions >

convert-to-utc

Converts the local "time" input parameter into Coordinated Universal Time, or GMT/Zulu time. (The function takes the timezone component, e.g. +5:00, into account).

fn-conv2utc

fn-2UTC

E.g. Instance document datetime:

departuredatetime="2001-12-17T09:30:02+05:00"

 

Result:

departuredatetime="2001-12-17T04:30:02"

 

Please note:

If the source dateTime is in the form departuredatetime="2001-12-17T09:30:02Z" then no conversion will take place because the trailing "Z" defines this time to be Zulu time, i.e. UTC. The result will be departuredatetime="2001-12-17T09:30:02".

 


© 2019 Altova GmbH