home contribute faq download

FunctX XSLT Functions

fn:current-time

The current time

Google
Webdatypic.com

Description

The fn:current-time function takes no parameters, and returns the current time, with time zone. If the function is called multiple times within the same query, it returns the same value every time. The time zone is implementation-dependent.

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
return value xs:time

Examples

XPath ExampleResults
current-time()
13:40:23.83-05:00

See Also

fn:current-dateTimeThe current date/time
fn:current-dateThe current date

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 XSLT Services

Recommended Reading:

XQuery