Software /
code /
prosody
File
util/time.lua @ 8946:3a095233e178
mod_pubsub: Handle optional item (thanks jonasw)
The ‘item’ argument is optional, so it needs to handle it not being
included, or util.stanza will throw an error in add_child
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Jun 2018 01:46:28 +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; }