http://www.zorba-xquery.com/modules/datetime ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace datetime = "http://www.zorba-xquery.com/modules/datetime";

This module provides functions to retrieve the current dateTime. In contrast to the current-dateTime functions specified in "XQuery Functions and Operators" the functions in this module are nondeterministic. That is, they do not return the current-dateTime from the dynamic context but return the actual value.

Author:

Matthias Brantner

XQuery version and encoding for this module:

xquery version "3.0" encoding "utf-8";

Zorba version for this module:

The latest version of this module is 2.0. For more information about module versioning in Zorba please check out this resource.

Module Resources
Related Documentation

For more details please also see:

Namespaces
an http://www.zorba-xquery.com/annotations
datetime http://www.zorba-xquery.com/modules/datetime
ver http://www.zorba-xquery.com/options/versioning
Function Summary
Nondeterministic External current-date ( ) as xs:date
Return the current date value.
Nondeterministic External current-dateTime ( ) as xs:dateTime
Return the current dateTime value.
Nondeterministic External current-time ( ) as xs:time
Return the current time value.
Nondeterministic External timestamp ( ) as xs:long
Return the the number of milliseconds since the Epoch.
Functions
Nondeterministic External current-date back to 'Function Summary'
declare function datetime:current-date (

) as xs:date

Return the current date value. Please note, that this function is not stable. It returns the dat value of the date the function has been actually invoked.

Returns:

Nondeterministic External current-dateTime back to 'Function Summary'
declare function datetime:current-dateTime (

) as xs:dateTime

Return the current dateTime value. Please note, that this function is not stable. It returns the dateTime value of the date and time the function has actually been invoked.

Returns:

Nondeterministic External current-time back to 'Function Summary'
declare function datetime:current-time (

) as xs:time

Return the current time value. Please note, that this function is not stable. It returns the time value of the date and time the function has actually been invoked.

Returns:

Nondeterministic External timestamp back to 'Function Summary'
declare function datetime:timestamp (

) as xs:long

Return the the number of milliseconds since the Epoch.

Returns:

blog comments powered by Disqus