Hi Ambika,

This comes closest to what you are looking for: 
http://www.xqueryfunctions.com/xq/functx_total-seconds-from-duration.html. The 
functx library is distributed with MarkLogic Server, but in your case you might 
want to copy the code itself and tweak it a bit to get millisec..

Kind regards,
Geert

Van: [email protected] 
[mailto:[email protected]] Namens ambika arumugam
Verzonden: donderdag 17 februari 2011 13:14
Aan: General MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] xdmp:elapsed-time to Millisecond conversion

Hi
I would like to convert the ouput of xdmp:elapsed-time which is of the format  
xs:dayTimeDuration("P63DT55H81S") into millisecond
Is there a build-in function to convert P63DT55H81S in terms milliseconds.

Regards
Ambika
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to