Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:seconds-from-dateTime

Return seconds integer value from datetime argument.


Syntax

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

Top of page

Description

This function returns an integer value between 0 and 60.999, representing the seconds component of the localized value of the argument value. The localized value is the value in its original timezone or without timezone. If the argument is an empty sequence, the empty sequence is returned.

Please note that the value can be beyond 60 in order to account for leap seconds.

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