mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
8 lines
292 B
Text
8 lines
292 B
Text
|
|
## Given an interval, returns a string representing the minutes and seconds
|
|
## in the interval (for example, "3m34s").
|
|
function duration_to_mins_secs(dur: interval): string
|
|
{
|
|
local dur_count = double_to_count(interval_to_double(dur));
|
|
return fmt("%dm%ds", dur_count/60, dur_count%60);
|
|
}
|