Software / code / prosody
File
util/time.lua @ 9045:4336a2b97aba
mod_pubsub: Make generation of notification body into an event to allow extensibility
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 14 Jul 2018 21:34:22 +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; }