Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:year-from-dateTime

Return year integer value from datetime argument.


Syntax

fn:year-from-dateTime(xs:dateTime? $arg) => xs:integer?

Top of page

Description

This function returns an integer value between 1 and 12, representing the year component of the localized value of the argument value. The localized value is the value in its original timezone or without timezone. The value may be negative. If the argument is an empty sequence, the empty sequence is returned.

Top of page

Argument

$arg

argument value of type xs:dateTime

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page