Fri, 21 Nov 2008 05:59:03 +0000
Now possible to specify nil origin to core_route_stanza. Origin will be chosen as the host of the 'from' attribute on the stanza. Returns false on no such host.
-- XEP-0082: XMPP Date and Time Profiles local os_date = os.date; local error = error; module "datetime" function date() return os_date("!%Y-%m-%d"); end function datetime() return os_date("!%Y-%m-%dT%H:%M:%SZ"); end function time() return os_date("!%H:%M:%S"); end function legacy() return os_date("!%Y%m%dT%H:%M:%S"); end function parse(s) error("datetime.parse: Not implemented"); -- TODO end return _M;