Description
The fn:timezone-from-dateTime function returns the time zone of an xs:dateTime value, offset from UTC, as an xs:dayTimeDuration value between -PT14H and PT14H . If the time zone is UTC, the value PT0H is returned.
This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return TypeName | Type |
$arg |
xs:dateTime? |
return value |
xs:dayTimeDuration? |
ExamplesXQuery Example | Results | Explanation |
---|
timezone-from-dateTime(
xs:dateTime('2006-08-15T10:30:23-05:00')) |
-PT5H |
timezone-from-dateTime(
xs:dateTime('2006-08-15T10:30:23')) |
() |
regardless of the implicit time zone |
See AlsoHistory |
Recommended Reading: 
|