Notifications: Event timestamp

When processing notifications we get these three time-related context fields:

  • LONGDATETIME
  • SHORTDATETIME
  • MICROTIME

LONGDATETIME and SHORTDATETIME are local time and honour the configured system timezone. MICROTIME looks like a Unix timestamp in µs precision.

The last one is not mentioned in Notification basics . Is it safe to use MICROTIME when developing notification scripts? Would be easier to work with instead of parsing LONGDATETIME into an object we can do calculations/comparisons with.

1 Like