mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
17 lines
310 B
Text
17 lines
310 B
Text
#
|
|
# @TEST-EXEC: bro -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event bro_init()
|
|
{
|
|
local f1 = "%Y-%m-%d %H:%M:%S";
|
|
local f2 = "%H%M%S %Y%m%d";
|
|
|
|
local a = double_to_time(0);
|
|
print strftime(f1, a);
|
|
print strftime(f2, a);
|
|
|
|
a = double_to_time(123456789);
|
|
print strftime(f1, a);
|
|
print strftime(f2, a);
|
|
}
|