<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FSubiloblee</id>
	<title>Module:Sandbox/Subiloblee - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FSubiloblee"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Subiloblee&amp;action=history"/>
	<updated>2026-07-31T19:25:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Subiloblee&amp;diff=146236&amp;oldid=prev</id>
		<title>imported&gt;Subiloblee at 06:38, 12 January 2018</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Subiloblee&amp;diff=146236&amp;oldid=prev"/>
		<updated>2018-01-12T06:38:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {} -- p stands for package&lt;br /&gt;
&lt;br /&gt;
function p.dmy(frame)&lt;br /&gt;
	local n = 0&lt;br /&gt;
	local s = frame.args.text&lt;br /&gt;
	local txt = &amp;quot;&amp;quot;&lt;br /&gt;
	local sec = &amp;quot;&amp;quot;&lt;br /&gt;
	local word = 0&lt;br /&gt;
	local BA = frame.args.BA or &amp;quot;&amp;quot;&lt;br /&gt;
	local form = frame.args.form or &amp;quot;iso&amp;quot;&lt;br /&gt;
	if BA~= &amp;quot;&amp;quot; then BA = &amp;quot; &amp;quot; .. BA end&lt;br /&gt;
    while n&amp;lt;=#s do&lt;br /&gt;
    	n = n + 1&lt;br /&gt;
    	if string.match(string.sub(s,n,n),&amp;quot;%d&amp;quot;)~=nil or string.match(string.sub(s,n,n),&amp;quot;%a&amp;quot;)~=nil then sec = sec .. string.sub(s,n,n) else&lt;br /&gt;
    		word = word + 1&lt;br /&gt;
    		if tonumber(sec)==nil and tonumber(string.sub(sec,1,#sec-2))==nil then &lt;br /&gt;
    		    if sec==&amp;quot;January&amp;quot; then if not month then month = &amp;quot;1&amp;quot; end txt = txt .. &amp;quot;1 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;February&amp;quot; then if not month then month = &amp;quot;2&amp;quot; end txt = txt .. &amp;quot;2 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;March&amp;quot; then if not month then month = &amp;quot;3&amp;quot; end txt = txt .. &amp;quot;3 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;April&amp;quot; then if not month then month = &amp;quot;4&amp;quot; end txt = txt .. &amp;quot;4 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;May&amp;quot; then if not month then month = &amp;quot;5&amp;quot; end txt = txt .. &amp;quot;5 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;June&amp;quot; then if not month then month = &amp;quot;6&amp;quot; end txt = txt .. &amp;quot;6 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;July&amp;quot; then if not month then month = &amp;quot;7&amp;quot; end txt = txt .. &amp;quot;7 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;August&amp;quot; then if not month then month = &amp;quot;8&amp;quot; end txt = txt .. &amp;quot;8 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;September&amp;quot; then if not month then month = &amp;quot;9&amp;quot; end txt = txt .. &amp;quot;9 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;October&amp;quot; then if not month then month = &amp;quot;10&amp;quot; end txt = txt .. &amp;quot;10 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;November&amp;quot; then if not month then month = &amp;quot;11&amp;quot; end txt = txt .. &amp;quot;11 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec==&amp;quot;December&amp;quot; then if not month then month = &amp;quot;12&amp;quot; end txt = txt .. &amp;quot;12 &amp;lt;-Month&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		    if sec~=&amp;quot;January&amp;quot; and sec~=&amp;quot;February&amp;quot; and sec~=&amp;quot;March&amp;quot; and sec~=&amp;quot;April&amp;quot; and sec~=&amp;quot;May&amp;quot; and sec~=&amp;quot;June&amp;quot; and sec~=&amp;quot;July&amp;quot; and &lt;br /&gt;
    		    sec~=&amp;quot;August&amp;quot; and sec~=&amp;quot;September&amp;quot; and sec~=&amp;quot;October&amp;quot; and sec~=&amp;quot;November&amp;quot; and sec~=&amp;quot;December&amp;quot; then txt = txt .. sec .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    		end&lt;br /&gt;
		    if tonumber(sec)~=nil then &lt;br /&gt;
		    	if tonumber(sec)&amp;lt;=31 then if not num then num = sec end txt = txt .. sec .. &amp;quot; &amp;lt;-Number&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
		    	if tonumber(sec)&amp;gt;31 then if not yr then yr = sec end txt = txt .. sec .. &amp;quot; &amp;lt;-Year&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
		    end&lt;br /&gt;
		    if tonumber(sec)==nil and tonumber(string.sub(sec,1,#sec-2)) ~= nil and tonumber(string.sub(sec,1,#sec-2))&amp;lt;=31 then &lt;br /&gt;
		        if not num then num = string.sub(sec,1,#sec-2) end &lt;br /&gt;
		        txt = txt .. string.sub(sec,1,#sec-2) .. &amp;quot; &amp;lt;-Number&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
		    end&lt;br /&gt;
		    if tonumber(sec)==nil and tonumber(string.sub(sec,1,#sec-2)) ~= nil and tonumber(string.sub(sec,1,#sec-2))&amp;gt;31 then &lt;br /&gt;
		    	txt = txt .. sec .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
		    end&lt;br /&gt;
		    sec = &amp;quot;&amp;quot;&lt;br /&gt;
    	end&lt;br /&gt;
    end &lt;br /&gt;
    txt = txt .. sec &lt;br /&gt;
    if num == &amp;quot;31&amp;quot; and month == &amp;quot;4&amp;quot; or &amp;quot;6&amp;quot; or &amp;quot;9&amp;quot; or &amp;quot;11&amp;quot; then num = 1 &lt;br /&gt;
    	month = month+1 end &lt;br /&gt;
    if month == &amp;quot;2&amp;quot; and num &amp;gt; &amp;quot;29&amp;quot; then num = num - 28 &lt;br /&gt;
    	month = month+1 end &lt;br /&gt;
  &lt;br /&gt;
    if yr and month and num then &lt;br /&gt;
    	if form == &amp;quot;dmy&amp;quot; then if month == &amp;quot;1&amp;quot; then month = &amp;quot;January&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;2&amp;quot; then month = &amp;quot;February&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;3&amp;quot; then month = &amp;quot;March&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;4&amp;quot; then month = &amp;quot;April&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;5&amp;quot; then month = &amp;quot;May&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;6&amp;quot; then month = &amp;quot;June&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;7&amp;quot; then month = &amp;quot;July&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;8&amp;quot; then month = &amp;quot;August&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;9&amp;quot; then month = &amp;quot;September&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;10&amp;quot; then month = &amp;quot;October&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;11&amp;quot; then month = &amp;quot;November&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;12&amp;quot; then month = &amp;quot;December&amp;quot; end&lt;br /&gt;
    		txt = txt .. num .. &amp;quot;-&amp;quot; .. month .. &amp;quot;-&amp;quot; .. yr .. BA .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    	if form == &amp;quot;mdy&amp;quot; then &lt;br /&gt;
    		if month == &amp;quot;1&amp;quot; then month = &amp;quot;January&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;2&amp;quot; then month = &amp;quot;February&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;3&amp;quot; then month = &amp;quot;March&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;4&amp;quot; then month = &amp;quot;April&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;5&amp;quot; then month = &amp;quot;May&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;6&amp;quot; then month = &amp;quot;June&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;7&amp;quot; then month = &amp;quot;July&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;8&amp;quot; then month = &amp;quot;August&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;9&amp;quot; then month = &amp;quot;September&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;10&amp;quot; then month = &amp;quot;October&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;11&amp;quot; then month = &amp;quot;November&amp;quot; end&lt;br /&gt;
    		if month == &amp;quot;12&amp;quot; then month = &amp;quot;December&amp;quot; end&lt;br /&gt;
    		txt = txt .. month .. &amp;quot;-&amp;quot; .. num .. &amp;quot;-&amp;quot; .. yr .. BA .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot; end &lt;br /&gt;
    	if form == &amp;quot;y&amp;quot; then txt = txt .. yr .. BA .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    	if form == &amp;quot;iso&amp;quot; then txt = txt .. yr .. &amp;quot;-&amp;quot; .. month .. &amp;quot;-&amp;quot; .. num .. BA .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    	if form ~= &amp;quot;dmy&amp;quot; and form ~= &amp;quot;myd&amp;quot; and form ~= &amp;quot;y&amp;quot; and form ~= &amp;quot;iso&amp;quot; then txt = txt .. &amp;quot;incorrect formate&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    	else txt = txt .. &amp;quot;invalid date&amp;lt;br&amp;gt;&amp;quot; end&lt;br /&gt;
    return word .. &amp;quot; word(s)&amp;lt;br&amp;gt;&amp;quot; .. txt .. frame.args.text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Subiloblee</name></author>
	</entry>
</feed>