_time - UDM Built-in Variable
The _time built-in variable displays the current time.
It has several variable attributes:
hh |
Resolves to the two-digit hour (24-hour time). |
mm |
Resolves to the two-digit minute. |
ss |
Number of seconds that have elapsed since the current minute. |
hs |
Resolves to the number of hundredths of a second that have elapsed since the last second. |
You only can reference _time in your scripts; it cannot be set using the set command.
A Stonebranch Tip
You can use the _time variable in combination with the print command to display custom time information in UDM's transaction log:
print msg="It is now $(_time.hh):$(_time.mm)"
Produces the following output:
It is now 23:31