Modul:TwitterSnowflake: Unterschied zwischen den Versionen
(apply conventions: tab indents and remove unintended globals) |
(use %B %e, %Y by default) |
||
Zeile 4: | Zeile 4: | ||
function p.snowflakeToDate(frame) | function p.snowflakeToDate(frame) | ||
local format = frame.args.format or " | local format = frame.args.format or "%B %e, %Y" | ||
local epoch = tonumber(frame.args.epoch) or 1288834974 | local epoch = tonumber(frame.args.epoch) or 1288834974 | ||
local id_str = frame.args.id_str | local id_str = frame.args.id_str |