base/utils/time.zeek

Time-related functions.

Summary

Constants

null_ts: time

Time value representing the 0 timestamp.

Functions

duration_to_mins_secs: function

Given an interval, returns a string representing the minutes and seconds in the interval (for example, “3m34s”).

get_packet_lag: function

Calculate the packet lag, i.e.

Detailed Interface

Constants

null_ts
Type:

time

Default:

0.0

Time value representing the 0 timestamp.

Functions

duration_to_mins_secs
Type:

function (dur: interval) : string

Given an interval, returns a string representing the minutes and seconds in the interval (for example, “3m34s”).

get_packet_lag
Type:

function () : interval

Calculate the packet lag, i.e. the difference between wall clock and the timestamp of the currently processed packet. If Zeek is not processing a packet, the function returns a 0 interval value.