总之,我想在Xquery中做一个日期减去操作,OSB 12C.Basically必须检查输入日期是否与系统日期相差小于6个月。
即如何使用xquery:(SystemDate - inputDate) <6个月
我经历了:https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqdtopref.html,但不能编译那里列出的任何函数。我还在xquery中添加了名称空间。我是否需要添加任何库。
任何指针都是非常受欢迎的。
发布于 2015-10-29 16:10:29
OSB对日期有一些扩展,您可以使用read about here。
但是,对于simple stuff like you mentioned,您甚至可能不需要它。
发布于 2015-10-29 21:28:20
All,Issue got resolved.Please找到逻辑的链接:http://developer.marklogic.com/pipermail/general/2015-February/016462.html
发布于 2016-08-18 23:56:56
减去日期会得到XQuery中的dayTimeDuration。
下面的代码是检查时间间隔的一种简单而准确的方法。
days-from-duration(fn:current-date() - $inputDate) < 180180是您需要验证的天数。
https://stackoverflow.com/questions/33389325
复制相似问题