Automic Workload Automation

 View Only

 AWA 12.3 and timestamp

Jump to Best Answer
marc broussard's profile image
marc broussard posted Jan 14, 2022 05:55 AM
In our AWA 12.3, I need to use timestamp.
I wanted to use :

but finally we need the milli seconds and not only the seconds (seconds are not enough)
Is it possible ?

&$PHYS_TIME_HHMMSSSS# does not work ...


Marc Broussard
Christoph Rekers's profile image
Christoph Rekers Best Answer
Hi @marc broussard,

Here's my solution using a VARA.BACKEND and date +"%T.%3N" as command​:

Peter Grundler's profile image
Broadcom Partner Peter Grundler
Hi Marc,

from what I can see is that milli seconds are not supported using time formats. Can you use the current time (including msec) from the operating system?

marc broussard's profile image
marc broussard


I am sure I will be abble to do it, but it is what I want to avoid !

Pete Wirfs's profile image
Pete Wirfs

I would probably pull it from the UC4 database with a VARA SQLI object.  It is still a costly call to an external resource though.

I have written an application (outside of UC4) that advanced its own timestamp value for the sake of generating unique data keys.  Doing a "add +1 to this value" runs much faster than calling an external resource. 

marc broussard's profile image
marc broussard
thanks christoph​