This entry covers three related functions: timezone-from-date() , timezone-from-dateTime() , and timezone-from-time() .
These functions extract the timezone component from an xs:date , xs:dateTime , or xs:time value, as a value of type xdt:dayTimeDuration representing the offset of the timezone from UTC. For example, the timezone «GMT-5 » is represented as «-PT5H » .
Argument | Data Type | Meaning |
---|---|---|
input | xs:dateTime? xs:date?, or xs:time? | The value from which the seconds component is to be extracted. The data type of the supplied argument must correspond to the data type implied by the function name |
Result | xdt:dayTimeDuration | The timezone component of the date, time, or dateTime |