Hi Ashok,
Not that I'm aware of, sorry.
Best Regards,
Steve Linn
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
------------------------------
Original Message:
Sent: Wed July 19, 2023 04:10 AM
From: Ashok Beshra
Subject: Getting datetime value with milliseconds in API Connect Gateway script
Thanks Steve, this worked. Is there a way to get 6 digits in milliseconds. Please advise
------------------------------
Ashok Beshra
Original Message:
Sent: Wed July 12, 2023 03:57 PM
From: Steve Linn
Subject: Getting datetime value with milliseconds in API Connect Gateway script
Hi Ashok,
Do you need your time in local time or UTC? You're correct system.datetime doesn't have milliseconds, but system.datetime-utc does.
datetime: "2023-07-12T15:41:42"
datetime-utc: "2023-07-12T19:41:42.721Z"
These represent the times when the API started. You could get the .721 from the -utc time and concatenate it to the datetime value to get your local time with milliseconds when the transaction started.
Best Regards,
Steve Linn
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Wed July 12, 2023 03:02 PM
From: Ashok Beshra
Subject: Getting datetime value with milliseconds in API Connect Gateway script
Hi Team...
I am using 'system.datetime' to get the gateway's time. The output of this function does not include milliseconds(6 digits). I need to get the time with milliseconds in the APIC gateway script assembly. Please let me know how this can be done. Thanks
------------------------------
Ashok Beshra
------------------------------