This entry describes a collection of three closely related functions: adjust-date-to-timezone() , adjust-dateTime-to-timezone() , and adjust-time-to-timezone() . These functions have the effect of returning an xs:date , xs:time , or xs:date Time, based on a supplied xs:date , xs:time , or xs:dateTime , modified by adding, removing, or altering the timezone component of the value.
Argument | Data Type | Meaning |
---|---|---|
input | xs:date?, xs:dateTime?, or xs:time? | The date, time, or dateTime value whose timezone is to be adjusted. The type of this value must correspond to the name of the function invoked, for example in the case of adjust-time-to timezone() it must be an xs:time value |
timezone (optional) | xdt:dayTimeDuration | Specifies the new timezone value. If this argument is omitted, the effect is the same as setting it to the result of the function implicit-timezone () |
Result | xs:date?, xs:dateTime?, or xs:time? | The adjusted date, dateTime, or time value. |