XSLT and XPath function reference in alphabetical order
(Excerpt from “XSLT 2.0 & XPath 2.0” by Frank Bongers, chapter 5, translated from German)
Value extraction from time values, date values and duration
The timezone component of a xs:time time indication in the form of a duration indication of xs:dayTimeDuration type.
Optional. A daytime indication of xs:time type which may contain a timezone indication. If no value is passed on, the function returns an empty result sequence.
Purpose of use:
The function extracts the value of the timezone offset of the UTC time of a time value passed on in the form of a duration value of xs:dayTimeDuration type.
The outputted value may move in the interval between +14:00 (PT14H) and -14:00 hours (-PT14H). If the empty sequence is passed on, the function returns an empty result sequence.
Example - extraction of the timezone factor from a time indication:
returns the value -05:00 in the form of -PT5H as xs:dayTimeDuration.
The function is not available.
fn:timezone-from-time($arg as xs:time?) as xs:dayTimeDuration?
|<< back||next >>|
Copyright © Galileo Press, Bonn 2008
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "XSLT 2.0 & XPath 2.0" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn, Germany