File

util/time.lua @ 8249:cc664a3917e2

prosodyctl: cert import: Use env variable set by certbot if invoked as post-renew hook
author Kim Alvefur <zash@zash.se>
date Mon, 18 Sep 2017 18:28:29 +0200
parent 7461:72e48bddf617
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;
}