home contribute faq download

FunctX XQuery Functions

fn:seconds-from-dateTime

The seconds portion of a date/time

Google
Webxqueryfunctions.com

Description

The fn:seconds-from-dateTime function returns the seconds portion of an xs:dateTime value, as a decimal number.

This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book.

Arguments and Return Type

NameType
$arg xs:dateTime?
return value xs:decimal?

Examples

XQuery ExampleResults
seconds-from-dateTime(
   xs:dateTime('2006-08-15T10:30:23.5'))
23.5

See Also

fn:seconds-from-timeThe seconds portion of a time

History

Published OnLast UpdatedContributor(s)
2006-06-272007-02-26W3C, XQuery 1.0 and XPath 2.0 Functions and Operators, http://www.w3.org/TR/xpath-functions/
Datypic XQuery Services

Recommended Reading:

XQuery