Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:TimeAgo: Revision history

From Bhikitia, An open encyclopedia

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.

15 December 2024

  • curprev 13:4513:45, 15 December 2024 Parvej Husen Talukder talk contribs 692 bytes +692 Created page with "local p = {} function p.timeago(frame) local date = frame.args[1] or "" if date == "" then return "Invalid date" end local current = os.time() local given = os.time{year=string.sub(date, 1, 4), month=string.sub(date, 6, 7), day=string.sub(date, 9, 10)} local diff = os.difftime(current, given) local days = math.floor(diff / (24 * 60 * 60)) if days < 1 then return "Today" elseif days == 1 then return "1 day ago" elsei..."