view util/time.lua @ 8231:97a094fdf101

mod_mam: Log a message in case archive deletion is not supported by the storage module in use
author Kim Alvefur <zash@zash.se>
date Tue, 12 Sep 2017 14:59:52 +0200
parents 72e48bddf617
children
line wrap: on
line source

-- Import gettime() from LuaSocket, as a way to access high-resolution time
-- in a platform-independent way

local socket_gettime = require "socket".gettime;

return {
	now = socket_gettime;
}