-
Change Request
-
Resolution: Duplicate
-
Trivial
-
None
-
None
Currently, when comparing a given unixtime against the current time, for example when checking an expiration date of a licence or certificate you create the Trigger expression like
{TEMPLATENAME:itemname.last()} - {TEMPLATENAME:itemname.now()} < 14d
Using the Item and calling the function now() is somewhat counterintuitive as you use a function on an item with a timestamp value that returns the current time. (It even hard to write down that explanation
Wouldn't it be nice to have something like a global funktion or macro to access the current unixtime?
Like unixtime.now() or {UNIXTIME.NOW}
PS.: Maybe also for other Date/Time formats (UTC/GMT, ect?)
- duplicates
-
ZBXNEXT-1719 Allow to use temporal trigger functions without item context
- Closed