fn:seconds-from-dateTime

Returns the seconds component of an xs:dateTime.

Signature

fn:seconds-from-dateTime($arg as xs:dateTime?) as xs:decimal?

Properties

This function is deterministic, context-independent, and focus-independent.

Rules

If $arg is the empty sequence, the function returns the empty sequence.

Otherwise, the function returns an xs:decimal value greater than or equal to zero and less than 60, representing the seconds and fractional seconds in the local value of $arg.

Examples

The expression fn:seconds-from-dateTime(xs:dateTime("1999-05-31T13:20:00-05:00")) returns 0.