XQuery - current-time 函式
current-time 函式用於返回當前時間。
語法
current-time()
示例
XQuery 表示式
let $time := current-time()
return
<results>
<time>{$time}</time>
</results>
輸出
<results> <time>14:53:46.803+05:30</time> </results>
驗證結果
為了測試以上功能,將 books.xqy(在 環境設定 一章中提到)替換為上述 XQuery 表示式,並執行 XQueryTester java 程式以驗證結果。
列印xquery_date_functions.htm
廣告