Hi, The current date and time is the same through the evaluation of the entire query. So if "submodule.xay" is a library module, imported in the main module, that will give you the exact same value.
If it is not a library module, and you invoke, spawn, schedule a task, eval or anything else, it depends on that "anything else"... Regards, -- Florent Georges http://fgeorges.org/ http://h2o.consulting/ - New website! On 17 November 2016 at 12:46, sweet frd wrote: > Hi All, > > I have a module somemodule.xqy which has the following line for logic > > fn:current-dateTime() > > > Will there be a difference in output for the below scenarios > > (a) Invoke the above xquery (somemodule.xqy) in main module > > (b) Directly invoke the function fn:current-dateTime() in the main module > > > Regards, > N. Sumathi. > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
