Jump to content

Module:TimeAgo: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

14 January 2025

  • curprev 02:2802:28, 14 January 2025 Jord talk contribs 1,079 bytes +1,079 Created page with "local p = {} -- Function to calculate the time difference and return it as a string function p.timeAgo(frame) local founded = frame.args[1] local currentDate = mw.date("yyyy-mm-dd") -- Convert the founded date to a Lua date object local foundedDate = mw.text.split(founded, "-") local foundedYear = tonumber(foundedDate[1]) local foundedMonth = tonumber(foundedDate[2]) local foundedDay = tonumber(foundedDate[3]) -- Current date co..."
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)