This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.
Table of Contents

3 Date and time functions

All functions listed here are supported in:

Date and time functions cannot be used in the expression alone; at least one non-time-based function referencing the host item must be present in the expression.

Description Function-specific parameters Comments
Current date in YYYYMMDD format. Example:
=> date()<20220101
Day of month in range of 1 to 31. Example:
=> dayofmonth()=1
Day of week in range of 1 to 7 (Mon - 1, Sun - 7). Example:
=> dayofweek()<6
Number of seconds since the Epoch (00:00:00 UTC, January 1, 1970). Example:
=> now()<1640998800
Current time in HHMMSS format. Example:
=> time()>000000 and time()<060000