- All Modules
- All Functions
-
www.w3.org
- 2005
- XDM
- store
- introspection
- reflection
- external
-
xqdoc
-
xqdoc
(E)
-
project_xqdoc
- xqdoc2xhtml
-
xqdoc
(E)
- data processing
- expath.org
- www.functx.com
- debugger
- error
- jsoniq.org
- www.zorba-xquery.com
http://www.zorba-xquery.com/modules/datetime
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.
Matthias Brantner
xquery version "3.0" encoding "utf-8";
The latest version of this module is 2.0. For more information about module versioning in Zorba please check out this resource.
- the XQuery module can be found here.
For more details please also see:
an | http://www.zorba-xquery.com/annotations |
datetime | http://www.zorba-xquery.com/modules/datetime |
ver | http://www.zorba-xquery.com/options/versioning |
![]() ![]() |
current-date
(
) as xs:date Return the current date value. |
![]() ![]() |
current-dateTime
(
) as xs:dateTime Return the current dateTime value. |
![]() ![]() |
current-time
(
) as xs:time Return the current time value. |
![]() ![]() |
timestamp
(
) as xs:long Return the the number of milliseconds since the Epoch. |
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.
- the non-stable date value
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.
- the non-stable datetime value
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.
- the non-stable time value
declare function datetime:timestamp ( ) as xs:long
Return the the number of milliseconds since the Epoch.
- the said number of milliseconds.