- All Modules
- All Functions
-
www.w3.org
- 2005
- XDM
- store
- introspection
- reflection
- external
-
xqdoc
-
project_xqdoc
-
xqdoc
(E)
- xqdoc2xhtml
-
project_xqdoc
- data processing
- expath.org
- www.functx.com
- error
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 XQuery module can be found here.
For more details please also see:
ann | 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 external Return the current date value. |
![]() ![]() |
current-dateTime
(
) as xs:dateTime external Return the current dateTime value. |
![]() ![]() |
current-time
(
) as xs:time external Return the current time value. |
![]() ![]() |
timestamp
(
) as xs:long external Return the the number of milliseconds since the Epoch. |
declare %ann:nondeterministic function datetime:current-date ( ) as xs:date external
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 %ann:nondeterministic function datetime:current-dateTime ( ) as xs:dateTime external
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 %ann:nondeterministic function datetime:current-time ( ) as xs:time external
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 %ann:nondeterministic function datetime:timestamp ( ) as xs:long external
Return the the number of milliseconds since the Epoch.
- the said number of milliseconds.