Adds a link to the historical alerts explorer

This commit is contained in:
Simone Mainardi 2016-11-25 20:10:16 +01:00
parent a8c00f785d
commit d5f4889375
6 changed files with 38 additions and 12 deletions

View file

@ -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