The adjust-dateTime-to-timezone() Function
Release 2.0 - ...
Syntax
Copy Code | |
---|---|
string adjust-dateTime-to-timezone(string) |
Description
This function adjusts a legal lexical xsd:dateTime received as the string parameter to the local time zone of the implementation, and returns the result. If the string argument contains no time zone, then the result is the string argument with the local time zone as the time zone component. If the implementation does not have access to time zone information, UTC is used. The result is empty string if the string argument is the empty sequence or not a legal lexical xsd:dateTime.
Example
XML | Copy Code |
---|---|
<xforms:output value="adjust-dateTime-to-timezone('2007-10-07T02:22:00')"> <xforms:label>Result : </xforms:label> </xforms:output> |
The above example returns e.g. "2007-10-07T02:22:00+02:00".
Specification
Link to the XForms specification: the adjust-dateTime-to-timezone() function.