Module:LatestUpdate: Difference between revisionsGive feedback
No edit summary |
No edit summary |
||
| Line 35: | Line 35: | ||
local function getMonthNumber(monthName) | local function getMonthNumber(monthName) | ||
return month_map[monthName] | return month_map[monthName] | ||
end | end | ||
| Line 64: | Line 52: | ||
}) | }) | ||
local now = | local now = os.time() | ||
local diff_seconds = os.difftime(now, update_time) | local diff_seconds = os.difftime(now, update_time) | ||
| Line 79: | Line 67: | ||
function p.days_since_text() | function p.days_since_text() | ||
local days = p.days_since() | local days = p.days_since() | ||
return days .. (days == 1 and " day ago" or " days ago") | return days .. (days == 1 and " day ago" or " days ago") | ||
end | end | ||
return p | return p | ||