On 9/9/2022 7:46 PM, ykhabins@bellsouth.net wrote:

Hi Vincent and Martin,

 

Thanks for the clarification.

 

I switched to using the Profiling module.

let $before_datetime := convert:integer-to-dateTime(prof:current-ms()) (: current-dateTime() :)

 

And it is working well.

<startTime>2022-09-09T17:31:34.466Z</startTime>

<endTime>2022-09-09T17:31:34.538Z</endTime>

 

The last remaining task is to convert the output from the UTC time zone to my local EST:

<startTime>2022-09-09T13:31:34.466-04:00</startTime>

 

Any idea how to achieve that?

 

There is a function adjust-dateTime-to-timezone, taking a duration, I think.