mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Adds a link to the historical alerts explorer
This commit is contained in:
parent
a8c00f785d
commit
d5f4889375
6 changed files with 38 additions and 12 deletions
|
|
@ -2385,3 +2385,11 @@ function format_time(timestamp, format, tzoffset)
|
|||
return os.date(format, timestamp + tzoffset)
|
||||
end
|
||||
|
||||
function makeTimeStamp(d)
|
||||
local pattern = "(%d+)%/(%d+)%/(%d+) (%d+):(%d+):(%d+)"
|
||||
local day,month, year, hour, minute, seconds = string.match(d, pattern);
|
||||
|
||||
local timestamp = os.time({year=year, month=month, day=day, hour=hour, min=minute, sec=seconds});
|
||||
|
||||
return timestamp.."";
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue