Software /
code /
prosody
File
util/time.lua @ 8468:5bfe58539b6c
util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes traceback, possibly invalid result)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 Dec 2017 20:53:37 +0100 |
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; }