Thanks Geert  and Mike.. I helped me out..

On Thu, Feb 17, 2011 at 11:09 PM, Michael Blakeley <[email protected]>wrote:

> A similar trick is used in cq, but it's simple enough to omit the function
> call.
>
> xs:dayTimeDuration("P63DT55H81S")
>  div xs:dayTimeDuration("PT0.001S")
> =>
> 5641281000
>
> -- Mike
>
> On 17 Feb 2011, at 06:51 , Geert Josten wrote:
>
> > 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]] Namensambika 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
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to