Zum Inhalt springen

Modul:TwitterSnowflake: Unterschied zwischen den Versionen

test
(create (thanks Jack for the scripting help))
 
(test)
Zeile 4: Zeile 4:
     format = format or "!%c"
     format = format or "!%c"
     epoch = epoch or 1288834974
     epoch = epoch or 1288834974
    id_str = id_str or "1347684877634838528"
     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
Anonymer Benutzer