saxon:adjust-to-civil-time()

adjust-to-civil-time($in as xs:dateTime?, $tz as xs:string) ==> xs:dateTime?

If the input is an empty sequence, the result is an empty sequence.

Otherwise the input dateTime is adjusted to a dateTime in the civil timezone named in the second argument. This uses Olson timezone names, for example America/New_York or Europe/Paris. For example,