Modul:TwitterSnowflake: Unterschied zwischen den Versionen
keine Bearbeitungszusammenfassung
(*facepalm*) |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
local p = {}; | local p = {}; | ||
p.snowflakeToDate = function ( | p.snowflakeToDate = function (frame) | ||
format = format or "!%c" | format = frame.args["format"] or "!%c" | ||
epoch = epoch or 1288834974 | epoch = frame.args["epoch"] or 1288834974 | ||
id_str = frame.args["id_str"] | |||
if type(id_str) ~= "string" then error("bad argument #1 (expected string, got " .. type(id_str) .. ")", 2) end | if type(id_str) ~= "string" then error("bad argument #1 (expected string, got " .. type(id_str) .. ")", 2) end | ||
if type(format) ~= "string" then error("bad argument #2 (expected string, got " .. type(format) .. ")", 2) end | if type(format) ~= "string" then error("bad argument #2 (expected string, got " .. type(format) .. ")", 2) end |