<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bhikitia.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATimeAgo</id>
	<title>Module:TimeAgo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.bhikitia.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATimeAgo"/>
	<link rel="alternate" type="text/html" href="https://en.bhikitia.org/index.php?title=Module:TimeAgo&amp;action=history"/>
	<updated>2026-06-18T15:22:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://en.bhikitia.org/index.php?title=Module:TimeAgo&amp;diff=2643&amp;oldid=prev</id>
		<title>Parvej Husen Talukder: Created page with &quot;local p = {}  function p.timeago(frame)     local date = frame.args[1] or &quot;&quot;     if date == &quot;&quot; then return &quot;Invalid date&quot; 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 &lt; 1 then         return &quot;Today&quot;     elseif days == 1 then         return &quot;1 day ago&quot;     elsei...&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.bhikitia.org/index.php?title=Module:TimeAgo&amp;diff=2643&amp;oldid=prev"/>
		<updated>2024-12-15T07:45:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.timeago(frame)     local date = frame.args[1] or &amp;quot;&amp;quot;     if date == &amp;quot;&amp;quot; then return &amp;quot;Invalid date&amp;quot; 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 &amp;lt; 1 then         return &amp;quot;Today&amp;quot;     elseif days == 1 then         return &amp;quot;1 day ago&amp;quot;     elsei...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.timeago(frame)&lt;br /&gt;
    local date = frame.args[1] or &amp;quot;&amp;quot;&lt;br /&gt;
    if date == &amp;quot;&amp;quot; then return &amp;quot;Invalid date&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
    local current = os.time()&lt;br /&gt;
    local given = os.time{year=string.sub(date, 1, 4), month=string.sub(date, 6, 7), day=string.sub(date, 9, 10)}&lt;br /&gt;
&lt;br /&gt;
    local diff = os.difftime(current, given)&lt;br /&gt;
    local days = math.floor(diff / (24 * 60 * 60))&lt;br /&gt;
&lt;br /&gt;
    if days &amp;lt; 1 then&lt;br /&gt;
        return &amp;quot;Today&amp;quot;&lt;br /&gt;
    elseif days == 1 then&lt;br /&gt;
        return &amp;quot;1 day ago&amp;quot;&lt;br /&gt;
    elseif days &amp;lt; 30 then&lt;br /&gt;
        return days .. &amp;quot; days ago&amp;quot;&lt;br /&gt;
    elseif days &amp;lt; 365 then&lt;br /&gt;
        return math.floor(days / 30) .. &amp;quot; months ago&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
        return math.floor(days / 365) .. &amp;quot; years ago&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Parvej Husen Talukder</name></author>
	</entry>
</feed>