XML technologies / XSLT / XSLT and XPath functions / Alphabetical XSLT and XPath reference / implicit-timezone

(Excerpt from “XSLT 2.0 & XPath 2.0” by Frank Bongers, chapter 5, translated from German)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

fn:implicit-timezone

Category:

Context information - date and time

Origin:

XPath 2.0

Return value:

The timezone factor of the implicit timezone as xs:dayTimeDuration.

Call/Arguments:

fn:implicit-timezone()

No arguments.

Purpose of use:

The function returns the value of the implicit (memorised) timezone factor in the form of a xs:dayTimeDuration duration value. If there is no implicit timezone indication, the function returns the empty sequence. (Usually, it can be assumed that there is an implicit timezone indication in any form.)

Example 1 - implicit timezone factor for EST:

fn:implicit-timezone()

returns -P5:00. This means that the implicit timezone is 5 hours after the UTC (Universal Time Coordinated); therefore the timezone corresponds to the Eastern Standard Time (EST).

Example 2 - implicit timezone factor for CET:

fn:implicit-timezone()

returns P1:00. This means that the implicit timezone is 1 hour before UTC; therefore it corresponds to the Central European Time (CET).

Function definition:

XPath 1.0:

The function is not available.

XPath 2.0:

fn:implicit-timezone() as xs:dayTimeDuration

   

 

 

 

back to top